home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-10-20 | 13.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 58 d5 01 2f 2f 3d 3d 3d |........|X..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 44 |========|==..// D|
|00000060| 6f 6d 69 6e 61 74 69 6f | 6e 2e 0d 0a 2f 2f 3d 3d |ominatio|n...//==|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 0a 63 6c 61 |========|===..cla|
|000000c0| 73 73 20 44 6f 6d 69 6e | 61 74 69 6f 6e 20 65 78 |ss Domin|ation ex|
|000000d0| 74 65 6e 64 73 20 54 65 | 61 6d 47 61 6d 65 50 6c |tends Te|amGamePl|
|000000e0| 75 73 0d 0a 09 63 6f 6e | 66 69 67 3b 0d 0a 0d 0a |us...con|fig;....|
|000000f0| 76 61 72 20 62 6f 6f 6c | 20 62 4e 65 75 74 72 61 |var bool| bNeutra|
|00000100| 6c 50 6f 69 6e 74 73 3b | 0d 0a 76 61 72 20 63 6f |lPoints;|..var co|
|00000110| 6e 66 69 67 20 62 6f 6f | 6c 20 62 44 75 6d 62 44 |nfig boo|l bDumbD|
|00000120| 6f 77 6e 3b 09 09 09 2f | 2f 20 72 65 64 75 63 65 |own;.../|/ reduce|
|00000130| 20 65 66 66 69 63 69 65 | 6e 63 79 20 6f 66 20 62 | efficie|ncy of b|
|00000140| 6f 74 20 74 65 61 6d 20 | 41 49 0d 0a 76 61 72 20 |ot team |AI..var |
|00000150| 43 6f 6e 74 72 6f 6c 50 | 6f 69 6e 74 20 43 6f 6e |ControlP|oint Con|
|00000160| 74 72 6f 6c 50 6f 69 6e | 74 73 5b 31 36 5d 3b 20 |trolPoin|ts[16]; |
|00000170| 2f 2f 20 63 6f 6e 74 72 | 6f 6c 20 70 6f 69 6e 74 |// contr|ol point|
|00000180| 20 6c 69 73 74 20 75 73 | 65 64 20 66 6f 72 20 41 | list us|ed for A|
|00000190| 49 0d 0a 09 09 09 09 09 | 09 09 09 09 2f 2f 20 28 |I.......|....// (|
|000001a0| 73 6f 20 67 61 6d 65 20 | 63 6f 75 6c 64 20 68 61 |so game |could ha|
|000001b0| 76 65 20 6d 6f 72 65 20 | 74 68 61 6e 20 31 36 2c |ve more |than 16,|
|000001c0| 20 62 75 74 20 62 6f 74 | 73 20 77 69 6c 6c 20 6f | but bot|s will o|
|000001d0| 6e 6c 79 20 75 6e 64 65 | 72 73 74 61 6e 64 20 66 |nly unde|rstand f|
|000001e0| 69 72 73 74 20 31 36 0d | 0a 76 61 72 20 69 6e 74 |irst 16.|.var int|
|000001f0| 20 44 6f 6d 53 63 6f 72 | 65 45 76 65 6e 74 3b 09 | DomScor|eEvent;.|
|00000200| 09 09 09 2f 2f 20 75 73 | 65 64 20 74 6f 20 74 72 |...// us|ed to tr|
|00000210| 61 63 6b 20 77 68 65 6e | 20 74 6f 20 64 75 6d 70 |ack when| to dump|
|00000220| 20 6f 75 74 20 70 65 72 | 69 6f 64 69 63 20 73 74 | out per|iodic st|
|00000230| 61 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0d 0a |at infor|mation..|
|00000240| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 50 6f 73 74 42 |..functi|on PostB|
|00000250| 65 67 69 6e 50 6c 61 79 | 28 29 0d 0a 7b 0d 0a 09 |eginPlay|()..{...|
|00000260| 6c 6f 63 61 6c 20 4e 61 | 76 69 67 61 74 69 6f 6e |local Na|vigation|
|00000270| 50 6f 69 6e 74 20 4e 3b | 0d 0a 09 6c 6f 63 61 6c |Point N;|...local|
|00000280| 20 69 6e 74 20 54 65 6d | 70 54 6f 74 61 6c 3b 0d | int Tem|pTotal;.|
|00000290| 0a 0d 0a 09 53 75 70 65 | 72 2e 50 6f 73 74 42 65 |....Supe|r.PostBe|
|000002a0| 67 69 6e 50 6c 61 79 28 | 29 3b 0d 0a 0d 0a 09 66 |ginPlay(|);.....f|
|000002b0| 6f 72 20 28 20 4e 3d 4c | 65 76 65 6c 2e 4e 61 76 |or ( N=L|evel.Nav|
|000002c0| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 4c 69 73 74 |igationP|ointList|
|000002d0| 3b 20 4e 21 3d 4e 6f 6e | 65 3b 20 4e 3d 4e 2e 4e |; N!=Non|e; N=N.N|
|000002e0| 65 78 74 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |extNavig|ationPoi|
|000002f0| 6e 74 20 29 0d 0a 09 09 | 69 66 20 28 20 4e 2e 49 |nt )....|if ( N.I|
|00000300| 73 41 28 27 43 6f 6e 74 | 72 6f 6c 50 6f 69 6e 74 |sA('Cont|rolPoint|
|00000310| 27 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 43 6f |') )....|{.....Co|
|00000320| 6e 74 72 6f 6c 50 6f 69 | 6e 74 73 5b 54 65 6d 70 |ntrolPoi|nts[Temp|
|00000330| 54 6f 74 61 6c 5d 20 3d | 20 43 6f 6e 74 72 6f 6c |Total] =| Control|
|00000340| 50 6f 69 6e 74 28 4e 29 | 3b 0d 0a 09 09 09 54 65 |Point(N)|;.....Te|
|00000350| 6d 70 54 6f 74 61 6c 2b | 2b 3b 0d 0a 09 09 7d 0d |mpTotal+|+;....}.|
|00000360| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 53 |.}....fu|nction S|
|00000370| 63 6f 72 65 4b 69 6c 6c | 28 70 61 77 6e 20 4b 69 |coreKill|(pawn Ki|
|00000380| 6c 6c 65 72 2c 20 70 61 | 77 6e 20 4f 74 68 65 72 |ller, pa|wn Other|
|00000390| 29 0d 0a 7b 0d 0a 09 53 | 75 70 65 72 2e 53 63 6f |)..{...S|uper.Sco|
|000003a0| 72 65 4b 69 6c 6c 28 4b | 69 6c 6c 65 72 2c 20 4f |reKill(K|iller, O|
|000003b0| 74 68 65 72 29 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |ther);..|...if ( |
|000003c0| 4f 74 68 65 72 2e 62 49 | 73 50 6c 61 79 65 72 20 |Other.bI|sPlayer |
|000003d0| 26 26 20 28 4b 69 6c 6c | 65 72 20 21 3d 20 4e 6f |&& (Kill|er != No|
|000003e0| 6e 65 29 20 26 26 20 4b | 69 6c 6c 65 72 2e 62 49 |ne) && K|iller.bI|
|000003f0| 73 50 6c 61 79 65 72 20 | 0d 0a 09 09 26 26 20 28 |sPlayer |....&& (|
|00000400| 4b 69 6c 6c 65 72 20 21 | 3d 20 4f 74 68 65 72 29 |Killer !|= Other)|
|00000410| 20 26 26 20 28 4b 69 6c | 6c 65 72 2e 50 6c 61 79 | && (Kil|ler.Play|
|00000420| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000430| 6f 2e 54 65 61 6d 20 3d | 3d 20 4f 74 68 65 72 2e |o.Team =|= Other.|
|00000440| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000450| 6e 49 6e 66 6f 2e 54 65 | 61 6d 29 0d 0a 09 09 26 |nInfo.Te|am)....&|
|00000460| 26 20 28 46 72 69 65 6e | 64 6c 79 46 69 72 65 53 |& (Frien|dlyFireS|
|00000470| 63 61 6c 65 20 3e 20 30 | 29 20 29 0d 0a 09 09 09 |cale > 0|) ).....|
|00000480| 4b 69 6c 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Killer.P|layerRep|
|00000490| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|000004a0| 72 65 20 2d 3d 20 31 3b | 0d 0a 7d 0d 0a 0d 0a 66 |re -= 1;|..}....f|
|000004b0| 75 6e 63 74 69 6f 6e 20 | 49 6e 69 74 52 61 74 65 |unction |InitRate|
|000004c0| 64 47 61 6d 65 28 4c 61 | 64 64 65 72 49 6e 76 65 |dGame(La|dderInve|
|000004d0| 6e 74 6f 72 79 20 4c 61 | 64 64 65 72 4f 62 6a 2c |ntory La|dderObj,|
|000004e0| 20 50 6c 61 79 65 72 50 | 61 77 6e 20 4c 61 64 64 | PlayerP|awn Ladd|
|000004f0| 65 72 50 6c 61 79 65 72 | 29 0d 0a 7b 0d 0a 09 62 |erPlayer|)..{...b|
|00000500| 44 75 6d 62 44 6f 77 6e | 20 3d 20 54 72 75 65 3b |DumbDown| = True;|
|00000510| 0d 0a 09 53 75 70 65 72 | 2e 49 6e 69 74 52 61 74 |...Super|.InitRat|
|00000520| 65 64 47 61 6d 65 28 4c | 61 64 64 65 72 4f 62 6a |edGame(L|adderObj|
|00000530| 2c 20 4c 61 64 64 65 72 | 50 6c 61 79 65 72 29 3b |, Ladder|Player);|
|00000540| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000550| 62 6f 6f 6c 20 53 65 74 | 45 6e 64 43 61 6d 73 28 |bool Set|EndCams(|
|00000560| 73 74 72 69 6e 67 20 52 | 65 61 73 6f 6e 29 0d 0a |string R|eason)..|
|00000570| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 54 65 61 6d 49 6e |{...loca|l TeamIn|
|00000580| 66 6f 20 42 65 73 74 54 | 65 61 6d 3b 0d 0a 09 6c |fo BestT|eam;...l|
|00000590| 6f 63 61 6c 20 43 6f 6e | 74 72 6f 6c 50 6f 69 6e |ocal Con|trolPoin|
|000005a0| 74 20 42 65 73 74 3b 0d | 0a 09 6c 6f 63 61 6c 20 |t Best;.|..local |
|000005b0| 50 61 77 6e 20 50 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Pawn P;.|..local |
|000005c0| 69 6e 74 20 69 2c 6a 2c | 20 6e 62 65 73 74 2c 20 |int i,j,| nbest, |
|000005d0| 6e 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 6c 61 79 65 |n;...loc|al Playe|
|000005e0| 72 50 61 77 6e 20 70 6c | 61 79 65 72 3b 0d 0a 0d |rPawn pl|ayer;...|
|000005f0| 0a 09 2f 2f 20 66 69 6e | 64 20 77 69 6e 6e 65 72 |..// fin|d winner|
|00000600| 0d 0a 09 42 65 73 74 54 | 65 61 6d 20 3d 20 54 65 |...BestT|eam = Te|
|00000610| 61 6d 73 5b 30 5d 3b 0d | 0a 09 66 6f 72 20 28 20 |ams[0];.|..for ( |
|00000620| 69 3d 31 3b 20 69 3c 4d | 61 78 54 65 61 6d 73 3b |i=1; i<M|axTeams;|
|00000630| 20 69 2b 2b 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 | i++ )..|.{....if|
|00000640| 20 28 20 69 6e 74 28 54 | 65 61 6d 73 5b 69 5d 2e | ( int(T|eams[i].|
|00000650| 53 63 6f 72 65 29 20 3e | 20 69 6e 74 28 42 65 73 |Score) >| int(Bes|
|00000660| 74 54 65 61 6d 2e 53 63 | 6f 72 65 29 20 29 0d 0a |tTeam.Sc|ore) )..|
|00000670| 09 09 09 42 65 73 74 54 | 65 61 6d 20 3d 20 54 65 |...BestT|eam = Te|
|00000680| 61 6d 73 5b 69 5d 3b 0d | 0a 09 09 65 6c 73 65 20 |ams[i];.|...else |
|00000690| 69 66 20 28 20 69 6e 74 | 28 54 65 61 6d 73 5b 69 |if ( int|(Teams[i|
|000006a0| 5d 2e 53 63 6f 72 65 29 | 20 3d 3d 20 69 6e 74 28 |].Score)| == int(|
|000006b0| 42 65 73 74 54 65 61 6d | 2e 53 63 6f 72 65 29 20 |BestTeam|.Score) |
|000006c0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 6e 20 3d 20 30 |)....{..|...n = 0|
|000006d0| 3b 0d 0a 09 09 09 6e 62 | 65 73 74 20 3d 20 30 3b |;.....nb|est = 0;|
|000006e0| 0d 0a 09 09 09 2f 2f 20 | 63 68 65 63 6b 20 77 68 |.....// |check wh|
|000006f0| 6f 20 68 61 73 20 6d 6f | 72 65 20 70 6f 69 6e 74 |o has mo|re point|
|00000700| 73 20 63 75 72 72 65 6e | 74 6c 79 0d 0a 09 09 09 |s curren|tly.....|
|00000710| 66 6f 72 20 28 20 6a 3d | 30 3b 20 6a 3c 31 36 3b |for ( j=|0; j<16;|
|00000720| 20 6a 2b 2b 20 29 0d 0a | 09 09 09 09 69 66 20 28 | j++ )..|....if (|
|00000730| 20 43 6f 6e 74 72 6f 6c | 50 6f 69 6e 74 73 5b 6a | Control|Points[j|
|00000740| 5d 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |] != Non|e ).....|
|00000750| 09 7b 0d 0a 09 09 09 09 | 09 69 66 20 28 20 43 6f |.{......|.if ( Co|
|00000760| 6e 74 72 6f 6c 50 6f 69 | 6e 74 73 5b 6a 5d 2e 43 |ntrolPoi|nts[j].C|
|00000770| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 54 65 61 6d 20 3d |ontrolli|ngTeam =|
|00000780| 3d 20 42 65 73 74 54 65 | 61 6d 20 29 0d 0a 09 09 |= BestTe|am )....|
|00000790| 09 09 09 09 6e 62 65 73 | 74 2b 2b 3b 0d 0a 09 09 |....nbes|t++;....|
|000007a0| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 43 6f 6e |...else |if ( Con|
|000007b0| 74 72 6f 6c 50 6f 69 6e | 74 73 5b 6a 5d 2e 43 6f |trolPoin|ts[j].Co|
|000007c0| 6e 74 72 6f 6c 6c 69 6e | 67 54 65 61 6d 20 3d 3d |ntrollin|gTeam ==|
|000007d0| 20 54 65 61 6d 73 5b 69 | 5d 20 29 0d 0a 09 09 09 | Teams[i|] ).....|
|000007e0| 09 09 09 6e 2b 2b 3b 0d | 0a 09 09 09 09 7d 0d 0a |...n++;.|.....}..|
|000007f0| 0d 0a 09 09 09 69 66 20 | 28 20 6e 20 3e 20 6e 62 |.....if |( n > nb|
|00000800| 65 73 74 20 29 0d 0a 09 | 09 09 09 42 65 73 74 54 |est )...|...BestT|
|00000810| 65 61 6d 20 3d 20 54 65 | 61 6d 73 5b 69 5d 3b 0d |eam = Te|ams[i];.|
|00000820| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 47 61 6d |...}...}|.....Gam|
|00000830| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00000840| 2e 47 61 6d 65 45 6e 64 | 65 64 43 6f 6d 6d 65 6e |.GameEnd|edCommen|
|00000850| 74 73 20 3d 20 42 65 73 | 74 54 65 61 6d 2e 54 65 |ts = Bes|tTeam.Te|
|00000860| 61 6d 4e 61 6d 65 40 47 | 61 6d 65 45 6e 64 65 64 |amName@G|ameEnded|
|00000870| 4d 65 73 73 61 67 65 3b | 0d 0a 0d 0a 09 46 6f 72 |Message;|.....For|
|00000880| 45 61 63 68 20 41 6c 6c | 41 63 74 6f 72 73 28 63 |Each All|Actors(c|
|00000890| 6c 61 73 73 27 43 6f 6e | 74 72 6f 6c 50 6f 69 6e |lass'Con|trolPoin|
|000008a0| 74 27 2c 20 42 65 73 74 | 29 0d 0a 09 09 69 66 20 |t', Best|)....if |
|000008b0| 28 20 42 65 73 74 2e 43 | 6f 6e 74 72 6f 6c 6c 69 |( Best.C|ontrolli|
|000008c0| 6e 67 54 65 61 6d 20 3d | 3d 20 42 65 73 74 54 65 |ngTeam =|= BestTe|
|000008d0| 61 6d 20 29 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |am )....|.break;.|
|000008e0| 0a 0d 0a 09 45 6e 64 54 | 69 6d 65 20 3d 20 4c 65 |....EndT|ime = Le|
|000008f0| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 20 |vel.Time|Seconds |
|00000900| 2b 20 33 2e 30 3b 0d 0a | 09 66 6f 72 20 28 20 50 |+ 3.0;..|.for ( P|
|00000910| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|00000920| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 50 2e 6e 65 | P!=None|; P=P.ne|
|00000930| 78 74 50 61 77 6e 20 29 | 0d 0a 09 7b 0d 0a 09 09 |xtPawn )|...{....|
|00000940| 70 6c 61 79 65 72 20 3d | 20 50 6c 61 79 65 72 50 |player =| PlayerP|
|00000950| 61 77 6e 28 50 29 3b 0d | 0a 09 09 50 2e 47 6f 74 |awn(P);.|...P.Got|
|00000960| 6f 53 74 61 74 65 28 27 | 47 61 6d 65 45 6e 64 65 |oState('|GameEnde|
|00000970| 64 27 29 3b 0d 0a 09 09 | 69 66 20 28 20 50 6c 61 |d');....|if ( Pla|
|00000980| 79 65 72 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |yer != N|one )...|
|00000990| 09 7b 0d 0a 09 09 09 70 | 6c 61 79 65 72 2e 62 42 |.{.....p|layer.bB|
|000009a0| 65 68 69 6e 64 56 69 65 | 77 20 3d 20 74 72 75 65 |ehindVie|w = true|
|000009b0| 3b 0d 0a 09 09 09 70 6c | 61 79 65 72 2e 56 69 65 |;.....pl|ayer.Vie|
|000009c0| 77 54 61 72 67 65 74 20 | 3d 20 42 65 73 74 3b 0d |wTarget |= Best;.|
|000009d0| 0a 09 09 09 69 66 20 28 | 21 62 54 75 74 6f 72 69 |....if (|!bTutori|
|000009e0| 61 6c 47 61 6d 65 29 0d | 0a 09 09 09 7b 0d 0a 09 |alGame).|....{...|
|000009f0| 09 09 09 69 66 20 28 20 | 70 6c 61 79 65 72 2e 50 |...if ( |player.P|
|00000a00| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000a10| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 42 65 73 |Info.Tea|m == Bes|
|00000a20| 74 54 65 61 6d 2e 54 65 | 61 6d 49 6e 64 65 78 20 |tTeam.Te|amIndex |
|00000a30| 29 0d 0a 09 09 09 09 09 | 50 6c 61 79 65 72 2e 43 |).......|Player.C|
|00000a40| 6c 69 65 6e 74 50 6c 61 | 79 53 6f 75 6e 64 28 73 |lientPla|ySound(s|
|00000a50| 6f 75 6e 64 27 41 6e 6e | 6f 75 6e 63 65 72 2e 57 |ound'Ann|ouncer.W|
|00000a60| 69 6e 6e 65 72 27 2c 20 | 54 72 75 65 2c 20 74 72 |inner', |True, tr|
|00000a70| 75 65 29 3b 0d 0a 09 09 | 09 09 65 6c 73 65 20 69 |ue);....|..else i|
|00000a80| 66 20 28 20 21 50 6c 61 | 79 65 72 2e 49 73 41 28 |f ( !Pla|yer.IsA(|
|00000a90| 27 53 70 65 63 74 61 74 | 6f 72 27 29 20 29 20 0d |'Spectat|or') ) .|
|00000aa0| 0a 09 09 09 09 09 50 6c | 61 79 65 72 2e 43 6c 69 |......Pl|ayer.Cli|
|00000ab0| 65 6e 74 50 6c 61 79 53 | 6f 75 6e 64 28 73 6f 75 |entPlayS|ound(sou|
|00000ac0| 6e 64 27 41 6e 6e 6f 75 | 6e 63 65 72 2e 4c 6f 73 |nd'Annou|ncer.Los|
|00000ad0| 74 4d 61 74 63 68 27 2c | 20 54 72 75 65 2c 20 74 |tMatch',| True, t|
|00000ae0| 72 75 65 29 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |rue);...|..}.....|
|00000af0| 70 6c 61 79 65 72 2e 43 | 6c 69 65 6e 74 47 61 6d |player.C|lientGam|
|00000b00| 65 45 6e 64 65 64 28 29 | 3b 0d 0a 09 09 7d 0d 0a |eEnded()|;....}..|
|00000b10| 09 7d 0d 0a 09 43 61 6c | 63 45 6e 64 53 74 61 74 |.}...Cal|cEndStat|
|00000b20| 73 28 29 3b 0d 0a 09 72 | 65 74 75 72 6e 20 74 72 |s();...r|eturn tr|
|00000b30| 75 65 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |ue;..}..|..functi|
|00000b40| 6f 6e 20 43 61 6c 63 45 | 6e 64 53 74 61 74 73 28 |on CalcE|ndStats(|
|00000b50| 29 0d 0a 7b 0d 0a 09 54 | 6f 74 61 6c 47 61 6d 65 |)..{...T|otalGame|
|00000b60| 73 2b 2b 3b 0d 0a 09 53 | 61 76 65 43 6f 6e 66 69 |s++;...S|aveConfi|
|00000b70| 67 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |g();..}.|...funct|
|00000b80| 69 6f 6e 20 54 69 6d 65 | 72 28 29 0d 0a 7b 0d 0a |ion Time|r()..{..|
|00000b90| 09 6c 6f 63 61 6c 20 4e | 61 76 69 67 61 74 69 6f |.local N|avigatio|
|00000ba0| 6e 50 6f 69 6e 74 20 4e | 3b 0d 0a 09 6c 6f 63 61 |nPoint N|;...loca|
|00000bb0| 6c 20 43 6f 6e 74 72 6f | 6c 50 6f 69 6e 74 20 43 |l Contro|lPoint C|
|00000bc0| 50 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |P;...loc|al int i|
|00000bd0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |;...loca|l float |
|00000be0| 63 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 6c 61 79 65 |c;...loc|al Playe|
|00000bf0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00000c00| 20 50 52 49 3b 0d 0a 0d | 0a 09 69 66 20 28 20 21 | PRI;...|..if ( !|
|00000c10| 62 47 61 6d 65 45 6e 64 | 65 64 20 29 0d 0a 09 7b |bGameEnd|ed )...{|
|00000c20| 0d 0a 09 09 63 20 3d 20 | 30 2e 32 3b 0d 0a 09 09 |....c = |0.2;....|
|00000c30| 69 66 20 28 20 54 69 6d | 65 4c 69 6d 69 74 20 3e |if ( Tim|eLimit >|
|00000c40| 20 30 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 | 0 )....|{.....if|
|00000c50| 20 28 20 52 65 6d 61 69 | 6e 69 6e 67 54 69 6d 65 | ( Remai|ningTime|
|00000c60| 20 3c 20 30 2e 32 35 20 | 2a 20 54 69 6d 65 4c 69 | < 0.25 |* TimeLi|
|00000c70| 6d 69 74 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |mit )...|..{.....|
|00000c80| 09 69 66 20 28 20 52 65 | 6d 61 69 6e 69 6e 67 54 |.if ( Re|mainingT|
|00000c90| 69 6d 65 20 3c 20 30 2e | 31 20 2a 20 54 69 6d 65 |ime < 0.|1 * Time|
|00000ca0| 4c 69 6d 69 74 20 29 0d | 0a 09 09 09 09 09 63 20 |Limit ).|......c |
|00000cb0| 3d 20 30 2e 38 3b 0d 0a | 09 09 09 09 65 6c 73 65 |= 0.8;..|....else|
|00000cc0| 0d 0a 09 09 09 09 09 63 | 20 3d 20 30 2e 34 3b 0d |.......c| = 0.4;.|
|00000cd0| 0a 09 09 09 7d 0d 0a 09 | 09 7d 0d 0a 0d 0a 09 09 |....}...|.}......|
|00000ce0| 69 66 20 28 20 21 62 52 | 65 71 75 69 72 65 52 65 |if ( !bR|equireRe|
|00000cf0| 61 64 79 20 7c 7c 20 28 | 43 6f 75 6e 74 44 6f 77 |ady || (|CountDow|
|00000d00| 6e 20 3c 3d 20 30 29 20 | 29 0d 0a 09 09 09 66 6f |n <= 0) |).....fo|
|00000d10| 72 20 28 20 4e 3d 4c 65 | 76 65 6c 2e 4e 61 76 69 |r ( N=Le|vel.Navi|
|00000d20| 67 61 74 69 6f 6e 50 6f | 69 6e 74 4c 69 73 74 3b |gationPo|intList;|
|00000d30| 20 4e 21 3d 4e 6f 6e 65 | 3b 20 4e 3d 4e 2e 6e 65 | N!=None|; N=N.ne|
|00000d40| 78 74 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |xtNaviga|tionPoin|
|00000d50| 74 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 43 |t ).....|{......C|
|00000d60| 50 20 3d 20 43 6f 6e 74 | 72 6f 6c 50 6f 69 6e 74 |P = Cont|rolPoint|
|00000d70| 28 4e 29 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 28 |(N);....|..if ( (|
|00000d80| 43 50 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |CP != No|ne) && (|
|00000d90| 43 50 2e 43 6f 6e 74 72 | 6f 6c 6c 69 6e 67 54 65 |CP.Contr|ollingTe|
|00000da0| 61 6d 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 43 |am != No|ne) && C|
|00000db0| 50 2e 62 53 63 6f 72 65 | 52 65 61 64 79 20 29 0d |P.bScore|Ready ).|
|00000dc0| 0a 09 09 09 09 7b 0d 0a | 09 09 09 09 09 43 50 2e |.....{..|.....CP.|
|00000dd0| 43 6f 6e 74 72 6f 6c 6c | 69 6e 67 54 65 61 6d 2e |Controll|ingTeam.|
|00000de0| 53 63 6f 72 65 20 2b 3d | 20 63 3b 0d 0a 09 09 09 |Score +=| c;.....|
|00000df0| 09 09 43 50 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |..CP.Con|troller.|
|00000e00| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000e10| 6e 49 6e 66 6f 2e 53 63 | 6f 72 65 20 2b 3d 20 63 |nInfo.Sc|ore += c|
|00000e20| 3b 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 7d 0d 0a |;......}|.....}..|
|00000e30| 09 09 44 6f 6d 53 63 6f | 72 65 45 76 65 6e 74 2b |..DomSco|reEvent+|
|00000e40| 2b 3b 0d 0a 09 09 69 66 | 20 28 44 6f 6d 53 63 6f |+;....if| (DomSco|
|00000e50| 72 65 45 76 65 6e 74 20 | 3e 3d 20 35 29 0d 0a 09 |reEvent |>= 5)...|
|00000e60| 09 7b 0d 0a 09 09 09 44 | 6f 6d 53 63 6f 72 65 45 |.{.....D|omScoreE|
|00000e70| 76 65 6e 74 20 3d 20 30 | 3b 0d 0a 09 09 09 66 6f |vent = 0|;.....fo|
|00000e80| 72 20 28 69 3d 30 3b 20 | 69 3c 34 3b 20 69 2b 2b |r (i=0; |i<4; i++|
|00000e90| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 69 66 20 |).....{.|.....if |
|00000ea0| 28 54 65 61 6d 73 5b 69 | 5d 2e 53 63 6f 72 65 20 |(Teams[i|].Score |
|00000eb0| 3e 20 30 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |> 0)....|..{.....|
|00000ec0| 09 09 69 66 20 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |..if (Le|vel.Game|
|00000ed0| 2e 57 6f 72 6c 64 4c 6f | 67 20 21 3d 20 4e 6f 6e |.WorldLo|g != Non|
|00000ee0| 65 29 0d 0a 09 09 09 09 | 09 09 4c 65 76 65 6c 2e |e)......|..Level.|
|00000ef0| 47 61 6d 65 2e 57 6f 72 | 6c 64 4c 6f 67 2e 4c 6f |Game.Wor|ldLog.Lo|
|00000f00| 67 53 70 65 63 69 61 6c | 45 76 65 6e 74 28 22 64 |gSpecial|Event("d|
|00000f10| 6f 6d 5f 73 63 6f 72 65 | 5f 75 70 64 61 74 65 22 |om_score|_update"|
|00000f20| 2c 20 69 2c 20 54 65 61 | 6d 73 5b 69 5d 2e 53 63 |, i, Tea|ms[i].Sc|
|00000f30| 6f 72 65 29 3b 0d 0a 09 | 09 09 09 09 69 66 20 28 |ore);...|....if (|
|00000f40| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 4c 6f 63 61 6c |Level.Ga|me.Local|
|00000f50| 4c 6f 67 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |Log != N|one)....|
|00000f60| 09 09 09 09 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 4c |....Leve|l.Game.L|
|00000f70| 6f 63 61 6c 4c 6f 67 2e | 4c 6f 67 53 70 65 63 69 |ocalLog.|LogSpeci|
|00000f80| 61 6c 45 76 65 6e 74 28 | 22 64 6f 6d 5f 73 63 6f |alEvent(|"dom_sco|
|00000f90| 72 65 5f 75 70 64 61 74 | 65 22 2c 20 69 2c 20 54 |re_updat|e", i, T|
|00000fa0| 65 61 6d 73 5b 69 5d 2e | 53 63 6f 72 65 29 3b 0d |eams[i].|Score);.|
|00000fb0| 0a 09 09 09 09 7d 0d 0a | 09 09 09 7d 0d 0a 09 09 |.....}..|...}....|
|00000fc0| 09 66 6f 72 20 28 69 3d | 30 3b 20 69 3c 33 32 3b |.for (i=|0; i<32;|
|00000fd0| 20 69 2b 2b 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 | i++)...|..{.....|
|00000fe0| 09 50 52 49 20 3d 20 47 | 61 6d 65 52 65 70 6c 69 |.PRI = G|ameRepli|
|00000ff0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 50 52 49 41 72 |cationIn|fo.PRIAr|
|00001000| 72 61 79 5b 69 5d 3b 0d | 0a 09 09 09 09 69 66 20 |ray[i];.|.....if |
|00001010| 28 50 52 49 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |(PRI != |None)...|
|00001020| 09 09 09 7b 0d 0a 09 09 | 09 09 09 69 66 20 28 4c |...{....|...if (L|
|00001030| 65 76 65 6c 2e 47 61 6d | 65 2e 57 6f 72 6c 64 4c |evel.Gam|e.WorldL|
|00001040| 6f 67 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 09 |og != No|ne).....|
|00001050| 09 09 09 4c 65 76 65 6c | 2e 47 61 6d 65 2e 57 6f |...Level|.Game.Wo|
|00001060| 72 6c 64 4c 6f 67 2e 4c | 6f 67 53 70 65 63 69 61 |rldLog.L|ogSpecia|
|00001070| 6c 45 76 65 6e 74 28 22 | 64 6f 6d 5f 70 6c 61 79 |lEvent("|dom_play|
|00001080| 65 72 73 63 6f 72 65 5f | 75 70 64 61 74 65 22 2c |erscore_|update",|
|00001090| 20 50 52 49 2e 50 6c 61 | 79 65 72 49 44 2c 20 69 | PRI.Pla|yerID, i|
|000010a0| 6e 74 28 50 52 49 2e 53 | 63 6f 72 65 29 29 3b 0d |nt(PRI.S|core));.|
|000010b0| 0a 09 09 09 09 09 69 66 | 20 28 4c 65 76 65 6c 2e |......if| (Level.|
|000010c0| 47 61 6d 65 2e 4c 6f 63 | 61 6c 4c 6f 67 20 21 3d |Game.Loc|alLog !=|
|000010d0| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 09 09 09 4c 65 | None)..|......Le|
|000010e0| 76 65 6c 2e 47 61 6d 65 | 2e 4c 6f 63 61 6c 4c 6f |vel.Game|.LocalLo|
|000010f0| 67 2e 4c 6f 67 53 70 65 | 63 69 61 6c 45 76 65 6e |g.LogSpe|cialEven|
|00001100| 74 28 22 64 6f 6d 5f 70 | 6c 61 79 65 72 73 63 6f |t("dom_p|layersco|
|00001110| 72 65 5f 75 70 64 61 74 | 65 22 2c 20 50 52 49 2e |re_updat|e", PRI.|
|00001120| 50 6c 61 79 65 72 49 44 | 2c 20 69 6e 74 28 50 52 |PlayerID|, int(PR|
|00001130| 49 2e 53 63 6f 72 65 29 | 29 3b 09 09 09 09 0d 0a |I.Score)|);......|
|00001140| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 09 09 7d |....}...|..}....}|
|00001150| 0d 0a 09 09 69 66 20 28 | 20 47 6f 61 6c 54 65 61 |....if (| GoalTea|
|00001160| 6d 53 63 6f 72 65 20 3e | 20 30 20 29 0d 0a 09 09 |mScore >| 0 )....|
|00001170| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 34 3b |.for ( i|=0; i<4;|
|00001180| 20 69 2b 2b 20 29 0d 0a | 09 09 09 09 69 66 20 28 | i++ )..|....if (|
|00001190| 20 54 65 61 6d 73 5b 69 | 5d 2e 53 63 6f 72 65 20 | Teams[i|].Score |
|000011a0| 3e 3d 20 47 6f 61 6c 54 | 65 61 6d 53 63 6f 72 65 |>= GoalT|eamScore|
|000011b0| 20 29 0d 0a 09 09 09 09 | 09 45 6e 64 47 61 6d 65 | )......|.EndGame|
|000011c0| 28 22 74 65 61 6d 73 63 | 6f 72 65 6c 69 6d 69 74 |("teamsc|orelimit|
|000011d0| 22 29 3b 0d 0a 09 7d 0d | 0a 09 53 75 70 65 72 2e |");...}.|..Super.|
|000011e0| 54 69 6d 65 72 28 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |Timer();|..}....f|
|000011f0| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 43 61 6e |unction |bool Can|
|00001200| 54 72 61 6e 73 6c 6f 63 | 61 74 65 28 42 6f 74 20 |Transloc|ate(Bot |
|00001210| 61 42 6f 74 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |aBot)..{|...if ( |
|00001220| 61 42 6f 74 2e 62 4e 6f | 76 69 63 65 20 26 26 20 |aBot.bNo|vice && |
|00001230| 28 61 42 6f 74 2e 53 6b | 69 6c 6c 20 3c 20 32 29 |(aBot.Sk|ill < 2)|
|00001240| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c | )....re|turn fal|
|00001250| 73 65 3b 0d 0a 09 72 65 | 74 75 72 6e 20 53 75 70 |se;...re|turn Sup|
|00001260| 65 72 2e 43 61 6e 54 72 | 61 6e 73 6c 6f 63 61 74 |er.CanTr|anslocat|
|00001270| 65 28 61 42 6f 74 29 3b | 0d 0a 7d 20 0d 0a 0d 0a |e(aBot);|..} ....|
|00001280| 66 75 6e 63 74 69 6f 6e | 20 43 6c 65 61 72 43 6f |function| ClearCo|
|00001290| 6e 74 72 6f 6c 28 50 61 | 77 6e 20 4f 74 68 65 72 |ntrol(Pa|wn Other|
|000012a0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 4e 61 76 |)..{...l|ocal Nav|
|000012b0| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 4e 3b 0d |igationP|oint N;.|
|000012c0| 0a 09 6c 6f 63 61 6c 20 | 50 61 77 6e 20 50 2c 20 |..local |Pawn P, |
|000012d0| 50 69 63 6b 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |Pick;...|local in|
|000012e0| 74 20 4e 75 6d 3b 0d 0a | 0d 0a 09 2f 2f 20 66 69 |t Num;..|...// fi|
|000012f0| 6e 64 20 61 20 74 65 61 | 6d 6d 61 74 65 0d 0a 09 |nd a tea|mmate...|
|00001300| 69 66 20 28 20 21 4f 74 | 68 65 72 2e 62 49 73 50 |if ( !Ot|her.bIsP|
|00001310| 6c 61 79 65 72 20 7c 7c | 20 28 4f 74 68 65 72 2e |layer ||| (Other.|
|00001320| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001330| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 3d 3d 20 32 35 |nInfo.Te|am == 25|
|00001340| 35 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |5) )....|return;.|
|00001350| 0a 0d 0a 09 66 6f 72 20 | 28 20 50 3d 4c 65 76 65 |....for |( P=Leve|
|00001360| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00001370| 6f 6e 65 3b 20 50 3d 50 | 2e 4e 65 78 74 50 61 77 |one; P=P|.NextPaw|
|00001380| 6e 20 29 0d 0a 09 09 69 | 66 20 28 20 50 2e 62 49 |n )....i|f ( P.bI|
|00001390| 73 50 6c 61 79 65 72 20 | 26 26 20 28 50 20 21 3d |sPlayer |&& (P !=|
|000013a0| 20 4f 74 68 65 72 29 20 | 26 26 20 28 50 2e 50 6c | Other) |&& (P.Pl|
|000013b0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000013c0| 6e 66 6f 2e 54 65 61 6d | 20 3d 3d 20 4f 74 68 65 |nfo.Team| == Othe|
|000013d0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|000013e0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 29 20 29 0d |ionInfo.|Team) ).|
|000013f0| 0a 09 09 7b 0d 0a 09 09 | 09 4e 75 6d 2b 2b 3b 0d |...{....|.Num++;.|
|00001400| 0a 09 09 09 69 66 20 28 | 20 28 50 69 63 6b 20 3d |....if (| (Pick =|
|00001410| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 28 52 61 6e 64 |= None) ||| (Rand|
|00001420| 28 4e 75 6d 29 20 3d 3d | 20 31 29 20 29 0d 0a 09 |(Num) ==| 1) )...|
|00001430| 09 09 09 50 69 63 6b 20 | 3d 20 50 3b 0d 0a 09 09 |...Pick |= P;....|
|00001440| 7d 0d 0a 09 66 6f 72 20 | 28 20 4e 3d 4c 65 76 65 |}...for |( N=Leve|
|00001450| 6c 2e 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |l.Naviga|tionPoin|
|00001460| 74 4c 69 73 74 3b 20 4e | 21 3d 4e 6f 6e 65 3b 20 |tList; N|!=None; |
|00001470| 4e 3d 4e 2e 6e 65 78 74 | 4e 61 76 69 67 61 74 69 |N=N.next|Navigati|
|00001480| 6f 6e 50 6f 69 6e 74 20 | 29 0d 0a 09 09 69 66 20 |onPoint |)....if |
|00001490| 28 20 4e 2e 49 73 41 28 | 27 43 6f 6e 74 72 6f 6c |( N.IsA(|'Control|
|000014a0| 50 6f 69 6e 74 27 29 20 | 26 26 20 28 43 6f 6e 74 |Point') |&& (Cont|
|000014b0| 72 6f 6c 50 6f 69 6e 74 | 28 4e 29 2e 43 6f 6e 74 |rolPoint|(N).Cont|
|000014c0| 72 6f 6c 6c 69 6e 67 54 | 65 61 6d 20 21 3d 20 4e |rollingT|eam != N|
|000014d0| 6f 6e 65 29 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |one) )..|..{.....|
|000014e0| 69 66 20 28 20 43 6f 6e | 74 72 6f 6c 50 6f 69 6e |if ( Con|trolPoin|
|000014f0| 74 28 4e 29 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |t(N).Con|troller |
|00001500| 3d 3d 20 4f 74 68 65 72 | 20 29 0d 0a 09 09 09 7b |== Other| ).....{|
|00001510| 0d 0a 09 09 09 09 43 6f | 6e 74 72 6f 6c 50 6f 69 |......Co|ntrolPoi|
|00001520| 6e 74 28 4e 29 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |nt(N).Co|ntroller|
|00001530| 20 3d 20 50 69 63 6b 3b | 0d 0a 09 09 09 09 43 6f | = Pick;|......Co|
|00001540| 6e 74 72 6f 6c 50 6f 69 | 6e 74 28 4e 29 2e 55 70 |ntrolPoi|nt(N).Up|
|00001550| 64 61 74 65 53 74 61 74 | 75 73 28 29 3b 0d 0a 09 |dateStat|us();...|
|00001560| 09 09 7d 0d 0a 09 09 7d | 0d 0a 7d 0d 0a 0d 0a 66 |..}....}|..}....f|
|00001570| 75 6e 63 74 69 6f 6e 20 | 4c 6f 67 6f 75 74 28 20 |unction |Logout( |
|00001580| 70 61 77 6e 20 45 78 69 | 74 69 6e 67 20 29 0d 0a |pawn Exi|ting )..|
|00001590| 7b 0d 0a 09 43 6c 65 61 | 72 43 6f 6e 74 72 6f 6c |{...Clea|rControl|
|000015a0| 28 45 78 69 74 69 6e 67 | 29 3b 0d 0a 09 53 75 70 |(Exiting|);...Sup|
|000015b0| 65 72 2e 4c 6f 67 6f 75 | 74 28 45 78 69 74 69 6e |er.Logou|t(Exitin|
|000015c0| 67 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |g);..}..|..functi|
|000015d0| 6f 6e 20 62 6f 6f 6c 20 | 52 65 73 74 61 72 74 50 |on bool |RestartP|
|000015e0| 6c 61 79 65 72 28 20 70 | 61 77 6e 20 61 50 6c 61 |layer( p|awn aPla|
|000015f0| 79 65 72 20 29 09 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |yer )...|{...loca|
|00001600| 6c 20 42 6f 74 20 42 3b | 0d 0a 0d 0a 09 42 20 3d |l Bot B;|.....B =|
|00001610| 20 42 6f 74 28 61 50 6c | 61 79 65 72 29 3b 0d 0a | Bot(aPl|ayer);..|
|00001620| 09 69 66 20 28 20 28 42 | 20 21 3d 20 4e 6f 6e 65 |.if ( (B| != None|
|00001630| 29 20 26 26 20 28 42 2e | 4f 72 64 65 72 73 20 3d |) && (B.|Orders =|
|00001640| 3d 20 27 44 65 66 65 6e | 64 27 29 20 29 0d 0a 09 |= 'Defen|d') )...|
|00001650| 09 42 2e 53 65 74 4f 72 | 64 65 72 73 28 27 46 72 |.B.SetOr|ders('Fr|
|00001660| 65 65 6c 61 6e 63 65 27 | 2c 20 4e 6f 6e 65 29 3b |eelance'|, None);|
|00001670| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 53 75 70 65 |.....ret|urn Supe|
|00001680| 72 2e 52 65 73 74 61 72 | 74 50 6c 61 79 65 72 28 |r.Restar|tPlayer(|
|00001690| 61 50 6c 61 79 65 72 29 | 3b 0d 0a 7d 0d 0a 0d 0a |aPlayer)|;..}....|
|000016a0| 66 75 6e 63 74 69 6f 6e | 20 41 63 74 6f 72 20 53 |function| Actor S|
|000016b0| 65 74 44 65 66 65 6e 73 | 65 46 6f 72 28 42 6f 74 |etDefens|eFor(Bot|
|000016c0| 20 61 42 6f 74 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 | aBot)..|{...loca|
|000016d0| 6c 20 41 63 74 6f 72 20 | 52 65 73 75 6c 74 3b 0d |l Actor |Result;.|
|000016e0| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 2c 20 6a |..local |int i, j|
|000016f0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 4e 61 76 69 67 61 |;...loca|l Naviga|
|00001700| 74 69 6f 6e 50 6f 69 6e | 74 20 4e 3b 0d 0a 0d 0a |tionPoin|t N;....|
|00001710| 09 69 66 20 28 20 43 6f | 6e 74 72 6f 6c 50 6f 69 |.if ( Co|ntrolPoi|
|00001720| 6e 74 28 61 42 6f 74 2e | 4f 72 64 65 72 4f 62 6a |nt(aBot.|OrderObj|
|00001730| 65 63 74 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ect) != |None )..|
|00001740| 09 09 72 65 74 75 72 6e | 20 61 42 6f 74 2e 4f 72 |..return| aBot.Or|
|00001750| 64 65 72 4f 62 6a 65 63 | 74 3b 0d 0a 0d 0a 09 77 |derObjec|t;.....w|
|00001760| 68 69 6c 65 20 28 20 28 | 69 3c 31 36 29 20 26 26 |hile ( (|i<16) &&|
|00001770| 20 28 43 6f 6e 74 72 6f | 6c 50 6f 69 6e 74 73 5b | (Contro|lPoints[|
|00001780| 69 5d 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |i] != No|ne) )...|
|00001790| 7b 0d 0a 09 09 69 66 20 | 28 20 28 43 6f 6e 74 72 |{....if |( (Contr|
|000017a0| 6f 6c 50 6f 69 6e 74 73 | 5b 69 5d 2e 43 6f 6e 74 |olPoints|[i].Cont|
|000017b0| 72 6f 6c 6c 69 6e 67 54 | 65 61 6d 20 21 3d 20 4e |rollingT|eam != N|
|000017c0| 6f 6e 65 29 0d 0a 09 09 | 09 26 26 20 28 43 6f 6e |one)....|.&& (Con|
|000017d0| 74 72 6f 6c 50 6f 69 6e | 74 73 5b 69 5d 2e 43 6f |trolPoin|ts[i].Co|
|000017e0| 6e 74 72 6f 6c 6c 69 6e | 67 54 65 61 6d 2e 54 65 |ntrollin|gTeam.Te|
|000017f0| 61 6d 49 6e 64 65 78 20 | 3d 3d 20 61 42 6f 74 2e |amIndex |== aBot.|
|00001800| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001810| 6e 49 6e 66 6f 2e 54 65 | 61 6d 29 20 29 0d 0a 09 |nInfo.Te|am) )...|
|00001820| 09 7b 0d 0a 09 09 09 6a | 2b 2b 3b 0d 0a 09 09 09 |.{.....j|++;.....|
|00001830| 69 66 20 28 20 28 52 65 | 73 75 6c 74 20 3d 3d 20 |if ( (Re|sult == |
|00001840| 4e 6f 6e 65 29 20 7c 7c | 20 28 20 46 52 61 6e 64 |None) ||| ( FRand|
|00001850| 28 29 20 3c 20 31 2e 30 | 2f 66 6c 6f 61 74 28 6a |() < 1.0|/float(j|
|00001860| 29 29 20 29 0d 0a 09 09 | 09 09 52 65 73 75 6c 74 |)) )....|..Result|
|00001870| 20 3d 20 4e 3b 0d 0a 09 | 09 7d 09 0d 0a 09 09 69 | = N;...|.}.....i|
|00001880| 2b 2b 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 72 65 74 75 |++;...}.|....retu|
|00001890| 72 6e 20 52 65 73 75 6c | 74 3b 09 09 0d 0a 7d 0d |rn Resul|t;....}.|
|000018a0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|000018b0| 20 46 69 6e 64 53 70 65 | 63 69 61 6c 41 74 74 72 | FindSpe|cialAttr|
|000018c0| 61 63 74 69 6f 6e 46 6f | 72 28 42 6f 74 20 61 42 |actionFo|r(Bot aB|
|000018d0| 6f 74 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 |ot)..{..|.local f|
|000018e0| 6c 6f 61 74 20 62 65 73 | 74 77 65 69 67 68 74 2c |loat bes|tweight,|
|000018f0| 20 6e 65 77 77 65 69 67 | 68 74 3b 0d 0a 09 6c 6f | newweig|ht;...lo|
|00001900| 63 61 6c 20 43 6f 6e 74 | 72 6f 6c 50 6f 69 6e 74 |cal Cont|rolPoint|
|00001910| 20 42 65 73 74 2c 20 4e | 65 61 72 3b 0d 0a 09 6c | Best, N|ear;...l|
|00001920| 6f 63 61 6c 20 69 6e 74 | 20 69 2c 20 63 6f 75 6e |ocal int| i, coun|
|00001930| 74 2c 20 6d 61 78 64 69 | 73 74 2c 20 74 3b 0d 0a |t, maxdi|st, t;..|
|00001940| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 4f 72 64 |.local b|ool bOrd|
|00001950| 65 72 65 64 2c 20 62 46 | 6f 75 6e 64 2c 20 62 42 |ered, bF|ound, bB|
|00001960| 65 68 69 6e 64 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |ehind;..|...if ( |
|00001970| 61 42 6f 74 2e 4c 61 73 | 74 41 74 74 72 61 63 74 |aBot.Las|tAttract|
|00001980| 43 68 65 63 6b 20 3d 3d | 20 4c 65 76 65 6c 2e 54 |Check ==| Level.T|
|00001990| 69 6d 65 53 65 63 6f 6e | 64 73 20 29 0d 0a 09 09 |imeSecon|ds )....|
|000019a0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|000019b0| 61 42 6f 74 2e 4c 61 73 | 74 41 74 74 72 61 63 74 |aBot.Las|tAttract|
|000019c0| 43 68 65 63 6b 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |Check = |Level.Ti|
|000019d0| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 0d 0a 09 69 |meSecond|s;.....i|
|000019e0| 66 20 28 20 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |f ( aBot|.Orders |
|000019f0| 3d 3d 20 27 44 65 66 65 | 6e 64 27 20 29 0d 0a 09 |== 'Defe|nd' )...|
|00001a00| 7b 0d 0a 09 09 69 66 20 | 28 20 28 61 42 6f 74 2e |{....if |( (aBot.|
|00001a10| 4f 72 64 65 72 4f 62 6a | 65 63 74 20 3d 3d 20 4e |OrderObj|ect == N|
|00001a20| 6f 6e 65 29 20 7c 7c 20 | 21 61 42 6f 74 2e 4f 72 |one) || |!aBot.Or|
|00001a30| 64 65 72 4f 62 6a 65 63 | 74 2e 49 73 41 28 27 43 |derObjec|t.IsA('C|
|00001a40| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 27 29 20 29 0d |ontrolPo|int') ).|
|00001a50| 0a 09 09 09 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |....aBot|.Orders |
|00001a60| 3d 20 27 46 72 65 65 4c | 61 6e 63 65 27 3b 0d 0a |= 'FreeL|ance';..|
|00001a70| 09 09 65 6c 73 65 20 69 | 66 20 28 20 28 43 6f 6e |..else i|f ( (Con|
|00001a80| 74 72 6f 6c 50 6f 69 6e | 74 28 61 42 6f 74 2e 4f |trolPoin|t(aBot.O|
|00001a90| 72 64 65 72 4f 62 6a 65 | 63 74 29 2e 43 6f 6e 74 |rderObje|ct).Cont|
|00001aa0| 72 6f 6c 6c 69 6e 67 54 | 65 61 6d 20 3d 3d 20 4e |rollingT|eam == N|
|00001ab0| 6f 6e 65 29 0d 0a 09 09 | 09 09 09 7c 7c 20 28 43 |one)....|...|| (C|
|00001ac0| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 28 61 42 6f 74 |ontrolPo|int(aBot|
|00001ad0| 2e 4f 72 64 65 72 4f 62 | 6a 65 63 74 29 2e 43 6f |.OrderOb|ject).Co|
|00001ae0| 6e 74 72 6f 6c 6c 69 6e | 67 54 65 61 6d 2e 54 65 |ntrollin|gTeam.Te|
|00001af0| 61 6d 49 6e 64 65 78 20 | 21 3d 20 61 42 6f 74 2e |amIndex |!= aBot.|
|00001b00| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001b10| 6e 49 6e 66 6f 2e 54 65 | 61 6d 29 20 29 0d 0a 09 |nInfo.Te|am) )...|
|00001b20| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 56 53 69 7a |.{.....i|f ( VSiz|
|00001b30| 65 28 61 42 6f 74 2e 4f | 72 64 65 72 4f 62 6a 65 |e(aBot.O|rderObje|
|00001b40| 63 74 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 61 42 |ct.Locat|ion - aB|
|00001b50| 6f 74 2e 4c 6f 63 61 74 | 69 6f 6e 29 20 3c 20 32 |ot.Locat|ion) < 2|
|00001b60| 30 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 61 |0 ).....|{......a|
|00001b70| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 2e |Bot.Orde|rObject.|
|00001b80| 54 6f 75 63 68 28 61 42 | 6f 74 29 3b 0d 0a 09 09 |Touch(aB|ot);....|
|00001b90| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00001ba0| 0a 09 09 09 7d 0d 0a 09 | 09 09 65 6c 73 65 20 69 |....}...|..else i|
|00001bb0| 66 20 28 20 61 42 6f 74 | 2e 41 63 74 6f 72 52 65 |f ( aBot|.ActorRe|
|00001bc0| 61 63 68 61 62 6c 65 28 | 61 42 6f 74 2e 4f 72 64 |achable(|aBot.Ord|
|00001bd0| 65 72 4f 62 6a 65 63 74 | 29 20 29 0d 0a 09 09 09 |erObject|) ).....|
|00001be0| 7b 0d 0a 09 09 09 09 62 | 46 6f 75 6e 64 20 3d 20 |{......b|Found = |
|00001bf0| 74 72 75 65 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |true;...|...aBot.|
|00001c00| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 61 42 6f |MoveTarg|et = aBo|
|00001c10| 74 2e 4f 72 64 65 72 4f | 62 6a 65 63 74 3b 0d 0a |t.OrderO|bject;..|
|00001c20| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |...}....|.else...|
|00001c30| 09 09 7b 0d 0a 09 09 09 | 09 61 42 6f 74 2e 4d 6f |..{.....|.aBot.Mo|
|00001c40| 76 65 54 61 72 67 65 74 | 20 3d 20 61 42 6f 74 2e |veTarget| = aBot.|
|00001c50| 46 69 6e 64 50 61 74 68 | 54 6f 77 61 72 64 28 61 |FindPath|Toward(a|
|00001c60| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 29 |Bot.Orde|rObject)|
|00001c70| 3b 0d 0a 09 09 09 09 62 | 46 6f 75 6e 64 20 3d 20 |;......b|Found = |
|00001c80| 28 20 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |( aBot.M|oveTarge|
|00001c90| 74 20 21 3d 20 4e 6f 6e | 65 20 29 3b 0d 0a 09 09 |t != Non|e );....|
|00001ca0| 09 7d 0d 0a 09 09 09 69 | 66 20 28 20 62 46 6f 75 |.}.....i|f ( bFou|
|00001cb0| 6e 64 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |nd )....|.{......|
|00001cc0| 69 66 20 28 20 61 42 6f | 74 2e 45 6e 65 6d 79 20 |if ( aBo|t.Enemy |
|00001cd0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 09 |!= None |).......|
|00001ce0| 61 42 6f 74 2e 62 52 65 | 61 64 79 54 6f 41 74 74 |aBot.bRe|adyToAtt|
|00001cf0| 61 63 6b 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 09 |ack = tr|ue;.....|
|00001d00| 09 53 65 74 41 74 74 72 | 61 63 74 69 6f 6e 53 74 |.SetAttr|actionSt|
|00001d10| 61 74 65 46 6f 72 28 61 | 42 6f 74 29 3b 0d 0a 09 |ateFor(a|Bot);...|
|00001d20| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00001d30| 0a 09 09 09 7d 0d 0a 09 | 09 09 72 65 74 75 72 6e |....}...|..return|
|00001d40| 20 66 61 6c 73 65 3b 0d | 0a 09 09 7d 0d 0a 09 09 | false;.|...}....|
|00001d50| 65 6c 73 65 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |else....|.return |
|00001d60| 66 61 6c 73 65 3b 09 09 | 09 09 09 0d 0a 09 7d 0d |false;..|......}.|
|00001d70| 0a 09 2f 2f 20 61 6c 73 | 6f 20 22 6e 6f 20 6d 6f |..// als|o "no mo|
|00001d80| 76 65 74 61 72 67 65 74 | 22 09 69 6e 20 66 61 6c |vetarget|".in fal|
|00001d90| 6c 62 61 63 6b 09 09 0d | 0a 09 62 4f 72 64 65 72 |lback...|..bOrder|
|00001da0| 65 64 20 3d 20 28 61 42 | 6f 74 2e 4f 72 64 65 72 |ed = (aB|ot.Order|
|00001db0| 73 20 3d 3d 20 27 46 6f | 6c 6c 6f 77 27 29 20 7c |s == 'Fo|llow') ||
|00001dc0| 7c 20 28 61 42 6f 74 2e | 4f 72 64 65 72 73 20 3d || (aBot.|Orders =|
|00001dd0| 3d 20 27 48 6f 6c 64 27 | 29 3b 0d 0a 09 69 66 20 |= 'Hold'|);...if |
|00001de0| 28 20 21 62 4f 72 64 65 | 72 65 64 20 26 26 20 62 |( !bOrde|red && b|
|00001df0| 44 75 6d 62 64 6f 77 6e | 20 26 26 20 61 42 6f 74 |Dumbdown| && aBot|
|00001e00| 2e 62 44 75 6d 62 64 6f | 77 6e 20 26 26 20 21 62 |.bDumbdo|wn && !b|
|00001e10| 4e 65 75 74 72 61 6c 50 | 6f 69 6e 74 73 20 29 0d |NeutralP|oints ).|
|00001e20| 0a 09 7b 0d 0a 09 09 2f | 2f 20 64 75 6d 62 64 6f |..{..../|/ dumbdo|
|00001e30| 77 6e 20 62 6f 74 20 69 | 66 20 69 74 73 20 74 65 |wn bot i|f its te|
|00001e40| 61 6d 20 69 73 6e 27 74 | 20 74 6f 6f 20 66 61 72 |am isn't| too far|
|00001e50| 20 62 65 68 69 6e 64 0d | 0a 09 09 66 6f 72 20 28 | behind.|...for (|
|00001e60| 20 69 3d 30 3b 20 69 3c | 20 4d 61 78 54 65 61 6d | i=0; i<| MaxTeam|
|00001e70| 73 3b 20 69 2b 2b 20 29 | 0d 0a 09 09 09 69 66 20 |s; i++ )|.....if |
|00001e80| 28 20 54 65 61 6d 73 5b | 69 5d 2e 73 63 6f 72 65 |( Teams[|i].score|
|00001e90| 20 3e 20 54 65 61 6d 73 | 5b 61 42 6f 74 2e 50 6c | > Teams|[aBot.Pl|
|00001ea0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001eb0| 6e 66 6f 2e 54 65 61 6d | 5d 2e 73 63 6f 72 65 20 |nfo.Team|].score |
|00001ec0| 2b 20 32 30 20 29 0d 0a | 09 09 09 09 62 42 65 68 |+ 20 )..|....bBeh|
|00001ed0| 69 6e 64 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 62 |ind = tr|ue;....b|
|00001ee0| 4f 72 64 65 72 65 64 20 | 3d 20 21 62 42 65 68 69 |Ordered |= !bBehi|
|00001ef0| 6e 64 3b 0d 0a 09 7d 0d | 0a 09 09 09 09 0d 0a 09 |nd;...}.|........|
|00001f00| 69 66 20 28 20 62 4f 72 | 64 65 72 65 64 20 7c 7c |if ( bOr|dered |||
|00001f10| 20 28 61 42 6f 74 2e 45 | 6e 65 6d 79 20 21 3d 20 | (aBot.E|nemy != |
|00001f20| 4e 6f 6e 65 29 20 7c 7c | 20 28 61 42 6f 74 2e 57 |None) ||| (aBot.W|
|00001f30| 65 61 70 6f 6e 20 3d 3d | 20 4e 6f 6e 65 29 20 0d |eapon ==| None) .|
|00001f40| 0a 09 09 7c 7c 20 28 61 | 42 6f 74 2e 57 65 61 70 |...|| (a|Bot.Weap|
|00001f50| 6f 6e 2e 41 49 52 61 74 | 69 6e 67 20 3c 20 30 2e |on.AIRat|ing < 0.|
|00001f60| 35 29 20 7c 7c 20 28 61 | 42 6f 74 2e 48 65 61 6c |5) || (a|Bot.Heal|
|00001f70| 74 68 20 3c 20 37 30 29 | 20 29 0d 0a 09 7b 0d 0a |th < 70)| )...{..|
|00001f80| 09 09 69 66 20 28 20 62 | 4f 72 64 65 72 65 64 20 |..if ( b|Ordered |
|00001f90| 29 0d 0a 09 09 09 4d 61 | 78 44 69 73 74 20 3d 20 |).....Ma|xDist = |
|00001fa0| 31 32 30 30 3b 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |1200;...|.else...|
|00001fb0| 09 09 4d 61 78 44 69 73 | 74 20 3d 20 31 37 30 30 |..MaxDis|t = 1700|
|00001fc0| 3b 0d 0a 09 09 2f 2f 20 | 63 68 61 6e 67 65 20 6e |;....// |change n|
|00001fd0| 65 61 72 62 79 20 65 6e | 65 6d 79 20 6f 72 20 6e |earby en|emy or n|
|00001fe0| 65 75 74 72 61 6c 20 63 | 6f 6e 74 72 6f 6c 70 6f |eutral c|ontrolpo|
|00001ff0| 69 6e 74 0d 0a 09 09 69 | 20 3d 20 30 3b 0d 0a 09 |int....i| = 0;...|
|00002000| 09 62 4e 65 75 74 72 61 | 6c 50 6f 69 6e 74 73 20 |.bNeutra|lPoints |
|00002010| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 77 68 69 6c |= false;|....whil|
|00002020| 65 20 28 20 28 69 3c 31 | 36 29 20 26 26 20 28 43 |e ( (i<1|6) && (C|
|00002030| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 73 5b 69 5d 20 |ontrolPo|ints[i] |
|00002040| 21 3d 20 4e 6f 6e 65 29 | 20 29 0d 0a 09 09 7b 0d |!= None)| )....{.|
|00002050| 0a 09 09 09 69 66 20 28 | 20 28 28 43 6f 6e 74 72 |....if (| ((Contr|
|00002060| 6f 6c 50 6f 69 6e 74 73 | 5b 69 5d 2e 43 6f 6e 74 |olPoints|[i].Cont|
|00002070| 72 6f 6c 6c 69 6e 67 54 | 65 61 6d 20 3d 3d 20 4e |rollingT|eam == N|
|00002080| 6f 6e 65 29 20 0d 0a 09 | 09 09 09 7c 7c 20 28 43 |one) ...|...|| (C|
|00002090| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 73 5b 69 5d 2e |ontrolPo|ints[i].|
|000020a0| 43 6f 6e 74 72 6f 6c 6c | 69 6e 67 54 65 61 6d 2e |Controll|ingTeam.|
|000020b0| 54 65 61 6d 49 6e 64 65 | 78 20 21 3d 20 61 42 6f |TeamInde|x != aBo|
|000020c0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|000020d0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 29 29 0d 0a |ionInfo.|Team))..|
|000020e0| 09 09 09 09 26 26 20 28 | 56 53 69 7a 65 28 61 42 |....&& (|VSize(aB|
|000020f0| 6f 74 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 43 6f |ot.Locat|ion - Co|
|00002100| 6e 74 72 6f 6c 50 6f 69 | 6e 74 73 5b 69 5d 2e 4c |ntrolPoi|nts[i].L|
|00002110| 6f 63 61 74 69 6f 6e 29 | 20 3c 20 4d 61 78 44 69 |ocation)| < MaxDi|
|00002120| 73 74 29 0d 0a 09 09 09 | 09 26 26 20 61 42 6f 74 |st).....|.&& aBot|
|00002130| 2e 4c 69 6e 65 4f 66 53 | 69 67 68 74 54 6f 28 43 |.LineOfS|ightTo(C|
|00002140| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 73 5b 69 5d 29 |ontrolPo|ints[i])|
|00002150| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 69 66 | ).....{|......if|
|00002160| 20 28 20 43 6f 6e 74 72 | 6f 6c 50 6f 69 6e 74 73 | ( Contr|olPoints|
|00002170| 5b 69 5d 2e 43 6f 6e 74 | 72 6f 6c 6c 69 6e 67 54 |[i].Cont|rollingT|
|00002180| 65 61 6d 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |eam == N|one )...|
|00002190| 09 09 09 7b 0d 0a 09 09 | 09 09 09 62 4e 65 75 74 |...{....|...bNeut|
|000021a0| 72 61 6c 50 6f 69 6e 74 | 73 20 3d 20 74 72 75 65 |ralPoint|s = true|
|000021b0| 3b 0d 0a 09 09 09 09 09 | 69 66 20 28 20 62 4f 72 |;.......|if ( bOr|
|000021c0| 64 65 72 65 64 20 26 26 | 20 28 61 42 6f 74 2e 4f |dered &&| (aBot.O|
|000021d0| 72 64 65 72 73 20 21 3d | 20 27 46 6f 6c 6c 6f 77 |rders !=| 'Follow|
|000021e0| 27 29 20 26 26 20 28 61 | 42 6f 74 2e 4f 72 64 65 |') && (a|Bot.Orde|
|000021f0| 72 73 20 21 3d 20 27 48 | 6f 6c 64 27 29 20 29 0d |rs != 'H|old') ).|
|00002200| 0a 09 09 09 09 09 7b 0d | 0a 09 09 09 09 09 09 61 |......{.|.......a|
|00002210| 42 6f 74 2e 62 44 75 6d | 62 44 6f 77 6e 20 3d 20 |Bot.bDum|bDown = |
|00002220| 66 61 6c 73 65 3b 20 0d | 0a 09 09 09 09 09 09 62 |false; .|.......b|
|00002230| 4f 72 64 65 72 65 64 20 | 3d 20 66 61 6c 73 65 3b |Ordered |= false;|
|00002240| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 7d 0d |.......}|......}.|
|00002250| 0a 09 09 09 09 09 09 09 | 09 09 0d 0a 09 09 09 09 |........|........|
|00002260| 69 66 20 28 20 56 53 69 | 7a 65 28 43 6f 6e 74 72 |if ( VSi|ze(Contr|
|00002270| 6f 6c 50 6f 69 6e 74 73 | 5b 69 5d 2e 4c 6f 63 61 |olPoints|[i].Loca|
|00002280| 74 69 6f 6e 20 2d 20 61 | 42 6f 74 2e 4c 6f 63 61 |tion - a|Bot.Loca|
|00002290| 74 69 6f 6e 29 20 3c 20 | 32 30 20 29 0d 0a 09 09 |tion) < |20 )....|
|000022a0| 09 09 7b 0d 0a 09 09 09 | 09 09 43 6f 6e 74 72 6f |..{.....|..Contro|
|000022b0| 6c 50 6f 69 6e 74 73 5b | 69 5d 2e 54 6f 75 63 68 |lPoints[|i].Touch|
|000022c0| 28 61 42 6f 74 29 3b 0d | 0a 09 09 09 09 09 72 65 |(aBot);.|......re|
|000022d0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 09 09 09 |turn fal|se;.....|
|000022e0| 09 7d 0d 0a 09 09 09 09 | 65 6c 73 65 20 69 66 20 |.}......|else if |
|000022f0| 28 20 61 42 6f 74 2e 41 | 63 74 6f 72 52 65 61 63 |( aBot.A|ctorReac|
|00002300| 68 61 62 6c 65 28 43 6f | 6e 74 72 6f 6c 50 6f 69 |hable(Co|ntrolPoi|
|00002310| 6e 74 73 5b 69 5d 29 20 | 29 0d 0a 09 09 09 09 7b |nts[i]) |)......{|
|00002320| 0d 0a 09 09 09 09 09 62 | 46 6f 75 6e 64 20 3d 20 |.......b|Found = |
|00002330| 74 72 75 65 3b 0d 0a 09 | 09 09 09 09 61 42 6f 74 |true;...|....aBot|
|00002340| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 43 6f |.MoveTar|get = Co|
|00002350| 6e 74 72 6f 6c 50 6f 69 | 6e 74 73 5b 69 5d 3b 0d |ntrolPoi|nts[i];.|
|00002360| 0a 09 09 09 09 7d 0d 0a | 09 09 09 09 65 6c 73 65 |.....}..|....else|
|00002370| 20 69 66 20 28 20 21 62 | 4f 72 64 65 72 65 64 20 | if ( !b|Ordered |
|00002380| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 61 |)......{|.......a|
|00002390| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 20 |Bot.Orde|rObject |
|000023a0| 3d 20 43 6f 6e 74 72 6f | 6c 50 6f 69 6e 74 73 5b |= Contro|lPoints[|
|000023b0| 69 5d 3b 0d 0a 09 09 09 | 09 09 42 6f 74 52 65 70 |i];.....|..BotRep|
|000023c0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 61 42 6f |lication|Info(aBo|
|000023d0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|000023e0| 69 6f 6e 49 6e 66 6f 29 | 2e 4f 72 64 65 72 4f 62 |ionInfo)|.OrderOb|
|000023f0| 6a 65 63 74 20 3d 20 4e | 6f 6e 65 3b 0d 0a 09 09 |ject = N|one;....|
|00002400| 09 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00002410| 65 74 20 3d 20 61 42 6f | 74 2e 46 69 6e 64 50 61 |et = aBo|t.FindPa|
|00002420| 74 68 54 6f 77 61 72 64 | 28 43 6f 6e 74 72 6f 6c |thToward|(Control|
|00002430| 50 6f 69 6e 74 73 5b 69 | 5d 29 3b 0d 0a 09 09 09 |Points[i|]);.....|
|00002440| 09 09 62 46 6f 75 6e 64 | 20 3d 20 28 20 61 42 6f |..bFound| = ( aBo|
|00002450| 74 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 21 3d 20 |t.MoveTa|rget != |
|00002460| 4e 6f 6e 65 20 29 3b 0d | 0a 09 09 09 09 7d 0d 0a |None );.|.....}..|
|00002470| 09 09 09 09 69 66 20 28 | 20 62 46 6f 75 6e 64 20 |....if (| bFound |
|00002480| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 69 |)......{|.......i|
|00002490| 66 20 28 20 61 42 6f 74 | 2e 45 6e 65 6d 79 20 21 |f ( aBot|.Enemy !|
|000024a0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 09 09 09 |= None )|........|
|000024b0| 61 42 6f 74 2e 62 52 65 | 61 64 79 54 6f 41 74 74 |aBot.bRe|adyToAtt|
|000024c0| 61 63 6b 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 09 |ack = tr|ue;.....|
|000024d0| 09 09 53 65 74 41 74 74 | 72 61 63 74 69 6f 6e 53 |..SetAtt|ractionS|
|000024e0| 74 61 74 65 46 6f 72 28 | 61 42 6f 74 29 3b 0d 0a |tateFor(|aBot);..|
|000024f0| 09 09 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00002500| 3b 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 7d 09 0d |;......}|.....}..|
|00002510| 0a 09 09 09 69 2b 2b 3b | 0d 0a 09 09 7d 0d 0a 09 |....i++;|....}...|
|00002520| 09 69 66 20 28 20 62 4f | 72 64 65 72 65 64 20 7c |.if ( bO|rdered ||
|00002530| 7c 20 28 61 42 6f 74 2e | 45 6e 65 6d 79 20 3d 3d || (aBot.|Enemy ==|
|00002540| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 09 72 65 74 | None) )|.....ret|
|00002550| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 09 |urn fals|e;......|
|00002560| 69 20 3d 20 30 3b 0d 0a | 09 09 77 68 69 6c 65 20 |i = 0;..|..while |
|00002570| 28 20 28 69 3c 31 36 29 | 20 26 26 20 28 43 6f 6e |( (i<16)| && (Con|
|00002580| 74 72 6f 6c 50 6f 69 6e | 74 73 5b 69 5d 20 21 3d |trolPoin|ts[i] !=|
|00002590| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 | None) )|....{...|
|000025a0| 09 09 69 66 20 28 20 28 | 43 6f 6e 74 72 6f 6c 50 |..if ( (|ControlP|
|000025b0| 6f 69 6e 74 73 5b 69 5d | 2e 43 6f 6e 74 72 6f 6c |oints[i]|.Control|
|000025c0| 6c 69 6e 67 54 65 61 6d | 20 3d 3d 20 4e 6f 6e 65 |lingTeam| == None|
|000025d0| 29 20 0d 0a 09 09 09 09 | 7c 7c 20 28 43 6f 6e 74 |) ......||| (Cont|
|000025e0| 72 6f 6c 50 6f 69 6e 74 | 73 5b 69 5d 2e 43 6f 6e |rolPoint|s[i].Con|
|000025f0| 74 72 6f 6c 6c 69 6e 67 | 54 65 61 6d 2e 54 65 61 |trolling|Team.Tea|
|00002600| 6d 49 6e 64 65 78 20 21 | 3d 20 61 42 6f 74 2e 50 |mIndex !|= aBot.P|
|00002610| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002620| 49 6e 66 6f 2e 54 65 61 | 6d 29 20 29 0d 0a 09 09 |Info.Tea|m) )....|
|00002630| 09 09 43 6f 75 6e 74 2d | 2d 3b 0d 0a 09 09 09 65 |..Count-|-;.....e|
|00002640| 6c 73 65 0d 0a 09 09 09 | 09 43 6f 75 6e 74 2b 2b |lse.....|.Count++|
|00002650| 3b 0d 0a 09 09 09 69 2b | 2b 3b 0d 0a 09 09 7d 0d |;.....i+|+;....}.|
|00002660| 0a 09 09 69 66 20 28 20 | 43 6f 75 6e 74 20 3e 20 |...if ( |Count > |
|00002670| 30 20 29 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 66 |0 ).....|return f|
|00002680| 61 6c 73 65 3b 20 2f 2f | 20 61 6c 72 65 61 64 79 |alse; //| already|
|00002690| 20 68 61 76 65 20 61 6e | 20 61 64 76 61 6e 74 61 | have an| advanta|
|000026a0| 67 65 20 69 6e 20 63 6f | 6e 74 72 6f 6c 20 70 6f |ge in co|ntrol po|
|000026b0| 69 6e 74 73 0d 0a 09 7d | 0d 0a 0d 0a 09 2f 2f 6c |ints...}|.....//l|
|000026c0| 6f 67 28 22 46 69 6e 64 | 20 53 70 65 63 69 61 6c |og("Find| Special|
|000026d0| 20 41 74 74 72 61 63 74 | 69 6f 6e 20 66 6f 72 22 | Attract|ion for"|
|000026e0| 40 61 42 6f 74 40 22 69 | 6e 20 73 74 61 74 65 22 |@aBot@"i|n state"|
|000026f0| 40 61 42 6f 74 2e 47 65 | 74 53 74 61 74 65 4e 61 |@aBot.Ge|tStateNa|
|00002700| 6d 65 28 29 29 3b 0d 0a | 0d 0a 09 42 65 73 74 20 |me());..|...Best |
|00002710| 3d 20 43 6f 6e 74 72 6f | 6c 50 6f 69 6e 74 28 61 |= Contro|lPoint(a|
|00002720| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 29 |Bot.Orde|rObject)|
|00002730| 3b 0d 0a 09 69 66 20 28 | 20 28 42 65 73 74 20 3d |;...if (| (Best =|
|00002740| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 7c 7c 20 28 28 |= None).|...|| ((|
|00002750| 42 65 73 74 2e 43 6f 6e | 74 72 6f 6c 6c 69 6e 67 |Best.Con|trolling|
|00002760| 54 65 61 6d 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |Team != |None)...|
|00002770| 09 09 26 26 20 28 42 65 | 73 74 2e 43 6f 6e 74 72 |..&& (Be|st.Contr|
|00002780| 6f 6c 6c 69 6e 67 54 65 | 61 6d 2e 54 65 61 6d 49 |ollingTe|am.TeamI|
|00002790| 6e 64 65 78 20 3d 3d 20 | 61 42 6f 74 2e 50 6c 61 |ndex == |aBot.Pla|
|000027a0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000027b0| 66 6f 2e 54 65 61 6d 29 | 29 29 0d 0a 09 7b 0d 0a |fo.Team)|))...{..|
|000027c0| 09 09 62 65 73 74 77 65 | 69 67 68 74 20 3d 20 31 |..bestwe|ight = 1|
|000027d0| 30 30 30 30 30 30 30 3b | 0d 0a 09 09 77 68 69 6c |0000000;|....whil|
|000027e0| 65 20 28 20 28 69 3c 31 | 36 29 20 26 26 20 28 43 |e ( (i<1|6) && (C|
|000027f0| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 73 5b 69 5d 20 |ontrolPo|ints[i] |
|00002800| 21 3d 20 4e 6f 6e 65 29 | 20 29 0d 0a 09 09 7b 0d |!= None)| )....{.|
|00002810| 0a 09 09 09 69 66 20 28 | 20 43 6f 6e 74 72 6f 6c |....if (| Control|
|00002820| 50 6f 69 6e 74 73 5b 69 | 5d 2e 43 6f 6e 74 72 6f |Points[i|].Contro|
|00002830| 6c 6c 69 6e 67 54 65 61 | 6d 20 3d 3d 20 4e 6f 6e |llingTea|m == Non|
|00002840| 65 20 29 0d 0a 09 09 09 | 09 6e 65 77 77 65 69 67 |e ).....|.newweig|
|00002850| 68 74 20 3d 20 56 53 69 | 7a 65 28 43 6f 6e 74 72 |ht = VSi|ze(Contr|
|00002860| 6f 6c 50 6f 69 6e 74 73 | 5b 69 5d 2e 6c 6f 63 61 |olPoints|[i].loca|
|00002870| 74 69 6f 6e 20 2d 20 61 | 42 6f 74 2e 6c 6f 63 61 |tion - a|Bot.loca|
|00002880| 74 69 6f 6e 29 20 2a 20 | 30 2e 31 3b 0d 0a 09 09 |tion) * |0.1;....|
|00002890| 09 65 6c 73 65 20 69 66 | 20 28 20 28 43 6f 6e 74 |.else if| ( (Cont|
|000028a0| 72 6f 6c 50 6f 69 6e 74 | 73 5b 69 5d 2e 43 6f 6e |rolPoint|s[i].Con|
|000028b0| 74 72 6f 6c 6c 69 6e 67 | 54 65 61 6d 2e 54 65 61 |trolling|Team.Tea|
|000028c0| 6d 49 6e 64 65 78 20 21 | 3d 20 61 42 6f 74 2e 50 |mIndex !|= aBot.P|
|000028d0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000028e0| 49 6e 66 6f 2e 54 65 61 | 6d 29 20 29 0d 0a 09 09 |Info.Tea|m) )....|
|000028f0| 09 7b 0d 0a 09 09 09 09 | 6e 65 77 77 65 69 67 68 |.{......|newweigh|
|00002900| 74 20 3d 20 56 53 69 7a | 65 28 43 6f 6e 74 72 6f |t = VSiz|e(Contro|
|00002910| 6c 50 6f 69 6e 74 73 5b | 69 5d 2e 6c 6f 63 61 74 |lPoints[|i].locat|
|00002920| 69 6f 6e 20 2d 20 61 42 | 6f 74 2e 6c 6f 63 61 74 |ion - aB|ot.locat|
|00002930| 69 6f 6e 29 20 2b 20 32 | 20 2a 20 41 62 73 28 43 |ion) + 2| * Abs(C|
|00002940| 6f 6e 74 72 6f 6c 50 6f | 69 6e 74 73 5b 69 5d 2e |ontrolPo|ints[i].|
|00002950| 4c 6f 63 61 74 69 6f 6e | 2e 5a 20 2d 20 61 42 6f |Location|.Z - aBo|
|00002960| 74 2e 4c 6f 63 61 74 69 | 6f 6e 2e 5a 29 3b 0d 0a |t.Locati|on.Z);..|
|00002970| 09 09 09 09 6e 65 77 77 | 65 69 67 68 74 20 2a 3d |....neww|eight *=|
|00002980| 20 28 30 2e 38 20 2b 20 | 30 2e 34 20 2a 20 46 52 | (0.8 + |0.4 * FR|
|00002990| 61 6e 64 28 29 29 3b 0d | 0a 09 09 09 7d 0d 0a 09 |and());.|....}...|
|000029a0| 09 09 65 6c 73 65 20 0d | 0a 09 09 09 09 6e 65 77 |..else .|.....new|
|000029b0| 77 65 69 67 68 74 20 3d | 20 39 30 30 30 30 30 30 |weight =| 9000000|
|000029c0| 30 3b 0d 0a 0d 0a 09 09 | 09 69 66 20 28 20 6e 65 |0;......|.if ( ne|
|000029d0| 77 77 65 69 67 68 74 20 | 3c 20 62 65 73 74 77 65 |wweight |< bestwe|
|000029e0| 69 67 68 74 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |ight )..|...{....|
|000029f0| 09 09 62 65 73 74 77 65 | 69 67 68 74 20 3d 20 6e |..bestwe|ight = n|
|00002a00| 65 77 77 65 69 67 68 74 | 3b 0d 0a 09 09 09 09 42 |ewweight|;......B|
|00002a10| 65 73 74 20 3d 20 43 6f | 6e 74 72 6f 6c 50 6f 69 |est = Co|ntrolPoi|
|00002a20| 6e 74 73 5b 69 5d 3b 0d | 0a 09 09 09 7d 0d 0a 09 |nts[i];.|....}...|
|00002a30| 09 09 69 2b 2b 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |..i++;..|..}...}.|
|00002a40| 0a 0d 0a 09 69 66 20 28 | 20 42 65 73 74 20 21 3d |....if (| Best !=|
|00002a50| 20 4e 6f 6e 65 20 29 0d | 0a 09 7b 0d 0a 09 09 42 | None ).|..{....B|
|00002a60| 6f 74 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |otReplic|ationInf|
|00002a70| 6f 28 61 42 6f 74 2e 50 | 6c 61 79 65 72 52 65 70 |o(aBot.P|layerRep|
|00002a80| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 4f 72 |lication|Info).Or|
|00002a90| 64 65 72 4f 62 6a 65 63 | 74 20 3d 20 4e 6f 6e 65 |derObjec|t = None|
|00002aa0| 3b 0d 0a 09 09 61 42 6f | 74 2e 4f 72 64 65 72 4f |;....aBo|t.OrderO|
|00002ab0| 62 6a 65 63 74 20 3d 20 | 42 65 73 74 3b 0d 0a 09 |bject = |Best;...|
|00002ac0| 09 69 66 20 28 20 56 53 | 69 7a 65 28 42 65 73 74 |.if ( VS|ize(Best|
|00002ad0| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 61 42 6f 74 |.Locatio|n - aBot|
|00002ae0| 2e 4c 6f 63 61 74 69 6f | 6e 29 20 3c 20 32 30 20 |.Locatio|n) < 20 |
|00002af0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 61 42 6f 74 2e |)....{..|...aBot.|
|00002b00| 4f 72 64 65 72 4f 62 6a | 65 63 74 20 3d 20 4e 6f |OrderObj|ect = No|
|00002b10| 6e 65 3b 0d 0a 09 09 09 | 42 65 73 74 2e 54 6f 75 |ne;.....|Best.Tou|
|00002b20| 63 68 28 61 42 6f 74 29 | 3b 0d 0a 09 09 09 72 65 |ch(aBot)|;.....re|
|00002b30| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 09 09 7d |turn fal|se;....}|
|00002b40| 0d 0a 09 09 65 6c 73 65 | 20 69 66 20 28 20 61 42 |....else| if ( aB|
|00002b50| 6f 74 2e 41 63 74 6f 72 | 52 65 61 63 68 61 62 6c |ot.Actor|Reachabl|
|00002b60| 65 28 42 65 73 74 29 20 | 29 0d 0a 09 09 09 61 42 |e(Best) |).....aB|
|00002b70| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|00002b80| 42 65 73 74 3b 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |Best;...|.else...|
|00002b90| 09 09 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |..aBot.M|oveTarge|
|00002ba0| 74 20 3d 20 61 42 6f 74 | 2e 46 69 6e 64 50 61 74 |t = aBot|.FindPat|
|00002bb0| 68 54 6f 77 61 72 64 28 | 42 65 73 74 29 3b 0d 0a |hToward(|Best);..|
|00002bc0| 0d 0a 09 09 69 66 20 28 | 20 61 42 6f 74 2e 4d 6f |....if (| aBot.Mo|
|00002bd0| 76 65 54 61 72 67 65 74 | 20 21 3d 20 4e 6f 6e 65 |veTarget| != None|
|00002be0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 20 28 | )....{.|....if (|
|00002bf0| 20 61 42 6f 74 2e 62 56 | 65 72 62 6f 73 65 20 29 | aBot.bV|erbose )|
|00002c00| 0d 0a 09 09 09 09 6c 6f | 67 28 61 42 6f 74 24 22 |......lo|g(aBot$"|
|00002c10| 20 6d 6f 76 69 6e 67 20 | 74 6f 77 61 72 64 20 22 | moving |toward "|
|00002c20| 24 42 65 73 74 24 22 20 | 75 73 69 6e 67 20 22 24 |$Best$" |using "$|
|00002c30| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 29 |aBot.Mov|eTarget)|
|00002c40| 3b 0d 0a 09 09 09 53 65 | 74 41 74 74 72 61 63 74 |;.....Se|tAttract|
|00002c50| 69 6f 6e 53 74 61 74 65 | 46 6f 72 28 61 42 6f 74 |ionState|For(aBot|
|00002c60| 29 3b 0d 0a 09 09 09 72 | 65 74 75 72 6e 20 74 72 |);.....r|eturn tr|
|00002c70| 75 65 3b 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |ue;....}|....else|
|00002c80| 20 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 | ....{..|...if ( |
|00002c90| 46 52 61 6e 64 28 29 20 | 3c 20 30 2e 33 20 29 0d |FRand() |< 0.3 ).|
|00002ca0| 0a 09 09 09 09 61 42 6f | 74 2e 4f 72 64 65 72 4f |.....aBo|t.OrderO|
|00002cb0| 62 6a 65 63 74 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |bject = |None;...|
|00002cc0| 09 09 69 66 20 28 20 61 | 42 6f 74 2e 62 56 65 72 |..if ( a|Bot.bVer|
|00002cd0| 62 6f 73 65 20 29 0d 0a | 09 09 09 09 6c 6f 67 28 |bose )..|....log(|
|00002ce0| 61 42 6f 74 40 22 6e 6f | 20 70 61 74 68 20 74 6f |aBot@"no| path to|
|00002cf0| 22 40 42 65 73 74 2e 50 | 6f 69 6e 74 4e 61 6d 65 |"@Best.P|ointName|
|00002d00| 29 3b 0d 0a 09 09 7d 0d | 0a 09 09 09 0d 0a 09 7d |);....}.|.......}|
|00002d10| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 61 42 6f |...else |if ( aBo|
|00002d20| 74 2e 62 56 65 72 62 6f | 73 65 20 29 0d 0a 09 09 |t.bVerbo|se )....|
|00002d30| 6c 6f 67 28 61 42 6f 74 | 40 22 66 6f 75 6e 64 20 |log(aBot|@"found |
|00002d40| 6e 6f 20 62 65 73 74 20 | 63 6f 6e 74 72 6f 6c 20 |no best |control |
|00002d50| 70 6f 69 6e 74 22 29 3b | 0d 0a 09 72 65 74 75 72 |point");|...retur|
|00002d60| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |n false;|..}....f|
|00002d70| 75 6e 63 74 69 6f 6e 20 | 53 65 74 42 6f 74 4f 72 |unction |SetBotOr|
|00002d80| 64 65 72 73 28 42 6f 74 | 20 4e 65 77 42 6f 74 29 |ders(Bot| NewBot)|
|00002d90| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |..{...lo|cal Pawn|
|00002da0| 20 50 2c 20 4c 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 | P, L;..|.local i|
|00002db0| 6e 74 20 6e 75 6d 2c 20 | 74 6f 74 61 6c 3b 0d 0a |nt num, |total;..|
|00002dc0| 09 6c 6f 63 61 6c 20 42 | 6f 74 20 42 3b 0d 0a 0d |.local B|ot B;...|
|00002dd0| 0a 09 2f 2f 20 6f 6e 6c | 79 20 66 6f 6c 6c 6f 77 |..// onl|y follow|
|00002de0| 20 70 6c 61 79 65 72 73 | 2c 20 69 66 20 74 68 65 | players|, if the|
|00002df0| 72 65 20 61 72 65 20 61 | 6e 79 0d 0a 09 69 66 20 |re are a|ny...if |
|00002e00| 28 20 4e 75 6d 53 75 70 | 70 6f 72 74 69 6e 67 50 |( NumSup|portingP|
|00002e10| 6c 61 79 65 72 20 3d 3d | 20 30 20 29 20 0d 0a 09 |layer ==| 0 ) ...|
|00002e20| 7b 0d 0a 09 09 46 6f 72 | 20 28 20 50 3d 4c 65 76 |{....For| ( P=Lev|
|00002e30| 65 6c 2e 50 61 77 6e 4c | 69 73 74 3b 20 50 21 3d |el.PawnL|ist; P!=|
|00002e40| 4e 6f 6e 65 3b 20 50 3d | 20 50 2e 4e 65 78 74 50 |None; P=| P.NextP|
|00002e50| 61 77 6e 20 29 0d 0a 09 | 09 09 69 66 20 28 20 50 |awn )...|..if ( P|
|00002e60| 2e 49 73 41 28 27 50 6c | 61 79 65 72 50 61 77 6e |.IsA('Pl|ayerPawn|
|00002e70| 27 29 20 26 26 20 28 50 | 2e 50 6c 61 79 65 72 52 |') && (P|.PlayerR|
|00002e80| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00002e90| 65 61 6d 20 3d 3d 20 4e | 65 77 42 6f 74 2e 50 6c |eam == N|ewBot.Pl|
|00002ea0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00002eb0| 6e 66 6f 2e 54 65 61 6d | 29 0d 0a 09 09 09 09 26 |nfo.Team|)......&|
|00002ec0| 26 20 21 50 2e 49 73 41 | 28 27 53 70 65 63 74 61 |& !P.IsA|('Specta|
|00002ed0| 74 6f 72 27 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |tor') ).|...{....|
|00002ee0| 09 6e 75 6d 2b 2b 3b 0d | 0a 09 09 09 69 66 20 28 |.num++;.|....if (|
|00002ef0| 20 28 4c 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 | (L == N|one) || |
|00002f00| 28 46 52 61 6e 64 28 29 | 20 3c 20 31 2e 30 2f 66 |(FRand()| < 1.0/f|
|00002f10| 6c 6f 61 74 28 6e 75 6d | 29 29 20 29 0d 0a 09 09 |loat(num|)) )....|
|00002f20| 09 09 4c 20 3d 20 50 3b | 0d 0a 09 09 7d 0d 0a 0d |..L = P;|....}...|
|00002f30| 0a 09 09 69 66 20 28 20 | 4c 20 21 3d 20 4e 6f 6e |...if ( |L != Non|
|00002f40| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 4e 75 6d |e )....{|.....Num|
|00002f50| 53 75 70 70 6f 72 74 69 | 6e 67 50 6c 61 79 65 72 |Supporti|ngPlayer|
|00002f60| 2b 2b 3b 0d 0a 09 09 09 | 4e 65 77 42 6f 74 2e 53 |++;.....|NewBot.S|
|00002f70| 65 74 4f 72 64 65 72 73 | 28 27 46 6f 6c 6c 6f 77 |etOrders|('Follow|
|00002f80| 27 2c 4c 2c 74 72 75 65 | 29 3b 0d 0a 09 09 09 72 |',L,true|);.....r|
|00002f90| 65 74 75 72 6e 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |eturn;..|..}...}.|
|00002fa0| 0a 09 6e 75 6d 20 3d 20 | 30 3b 0d 0a 09 46 6f 72 |..num = |0;...For|
|00002fb0| 20 28 20 50 3d 4c 65 76 | 65 6c 2e 50 61 77 6e 4c | ( P=Lev|el.PawnL|
|00002fc0| 69 73 74 3b 20 50 21 3d | 4e 6f 6e 65 3b 20 50 3d |ist; P!=|None; P=|
|00002fd0| 20 50 2e 4e 65 78 74 50 | 61 77 6e 20 29 0d 0a 09 | P.NextP|awn )...|
|00002fe0| 09 69 66 20 28 20 50 2e | 62 49 73 50 6c 61 79 65 |.if ( P.|bIsPlaye|
|00002ff0| 72 20 26 26 20 28 50 2e | 50 6c 61 79 65 72 52 65 |r && (P.|PlayerRe|
|00003000| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00003010| 61 6d 20 3d 3d 20 4e 65 | 77 42 6f 74 2e 50 6c 61 |am == Ne|wBot.Pla|
|00003020| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003030| 66 6f 2e 54 65 61 6d 29 | 20 29 0d 0a 09 09 7b 0d |fo.Team)| )....{.|
|00003040| 0a 09 09 09 74 6f 74 61 | 6c 2b 2b 3b 0d 0a 09 09 |....tota|l++;....|
|00003050| 09 69 66 20 28 20 28 50 | 20 21 3d 20 4e 65 77 42 |.if ( (P| != NewB|
|00003060| 6f 74 29 20 26 26 20 50 | 2e 49 73 41 28 27 42 6f |ot) && P|.IsA('Bo|
|00003070| 74 27 29 20 29 09 0d 0a | 09 09 09 7b 0d 0a 09 09 |t') )...|...{....|
|00003080| 09 09 42 20 3d 20 42 6f | 74 28 50 29 3b 0d 0a 09 |..B = Bo|t(P);...|
|00003090| 09 09 09 69 66 20 28 20 | 42 2e 4f 72 64 65 72 73 |...if ( |B.Orders|
|000030a0| 20 3d 3d 20 27 46 72 65 | 65 4c 61 6e 63 65 27 20 | == 'Fre|eLance' |
|000030b0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 6e |)......{|.......n|
|000030c0| 75 6d 2b 2b 3b 0d 0a 09 | 09 09 09 09 69 66 20 28 |um++;...|....if (|
|000030d0| 20 28 4c 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 | (L == N|one) || |
|000030e0| 28 46 52 61 6e 64 28 29 | 20 3c 20 31 2e 30 2f 66 |(FRand()| < 1.0/f|
|000030f0| 6c 6f 61 74 28 6e 75 6d | 29 29 20 29 0d 0a 09 09 |loat(num|)) )....|
|00003100| 09 09 09 09 4c 20 3d 20 | 50 3b 0d 0a 09 09 09 09 |....L = |P;......|
|00003110| 7d 0d 0a 09 09 09 09 65 | 6c 73 65 20 69 66 20 28 |}......e|lse if (|
|00003120| 20 28 42 2e 4f 72 64 65 | 72 73 20 3d 3d 20 27 46 | (B.Orde|rs == 'F|
|00003130| 6f 6c 6c 6f 77 27 29 20 | 26 26 20 28 42 2e 4f 72 |ollow') |&& (B.Or|
|00003140| 64 65 72 4f 62 6a 65 63 | 74 20 3d 3d 20 4c 29 20 |derObjec|t == L) |
|00003150| 29 0d 0a 09 09 09 09 09 | 4c 20 3d 20 4e 6f 6e 65 |).......|L = None|
|00003160| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 09 |;.....}.|...}....|
|00003170| 09 09 0d 0a 09 69 66 20 | 28 20 28 4c 20 21 3d 20 |.....if |( (L != |
|00003180| 4e 6f 6e 65 29 20 26 26 | 20 28 74 6f 74 61 6c 20 |None) &&| (total |
|00003190| 3e 20 33 29 20 26 26 20 | 28 46 52 61 6e 64 28 29 |> 3) && |(FRand()|
|000031a0| 20 3c 20 28 66 6c 6f 61 | 74 28 6e 75 6d 29 20 2d | < (floa|t(num) -|
|000031b0| 20 32 2e 30 29 2f 28 66 | 6c 6f 61 74 28 74 6f 74 | 2.0)/(f|loat(tot|
|000031c0| 61 6c 29 20 2d 20 32 2e | 35 29 29 20 29 0d 0a 09 |al) - 2.|5)) )...|
|000031d0| 7b 0d 0a 09 09 4e 65 77 | 42 6f 74 2e 53 65 74 4f |{....New|Bot.SetO|
|000031e0| 72 64 65 72 73 28 27 46 | 6f 6c 6c 6f 77 27 2c 4c |rders('F|ollow',L|
|000031f0| 2c 74 72 75 65 29 3b 0d | 0a 09 09 72 65 74 75 72 |,true);.|...retur|
|00003200| 6e 3b 0d 0a 09 7d 0d 0a | 09 4e 65 77 42 6f 74 2e |n;...}..|.NewBot.|
|00003210| 53 65 74 4f 72 64 65 72 | 73 28 27 46 72 65 65 6c |SetOrder|s('Freel|
|00003220| 61 6e 63 65 27 2c 20 4e | 6f 6e 65 2c 74 72 75 65 |ance', N|one,true|
|00003230| 29 3b 0d 0a 7d 09 09 09 | 09 20 0d 0a 0d 0a 66 75 |);..}...|. ....fu|
|00003240| 6e 63 74 69 6f 6e 20 45 | 6e 64 47 61 6d 65 28 20 |nction E|ndGame( |
|00003250| 73 74 72 69 6e 67 20 52 | 65 61 73 6f 6e 20 29 0d |string R|eason ).|
|00003260| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|00003270| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 50 6c 61 79 65 72 |;...loca|l Player|
|00003280| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 20 |Replicat|ionInfo |
|00003290| 50 52 49 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 69 3d |PRI;....|.for (i=|
|000032a0| 30 3b 20 69 3c 34 3b 20 | 69 2b 2b 29 0d 0a 09 7b |0; i<4; |i++)...{|
|000032b0| 0d 0a 09 09 69 66 20 28 | 54 65 61 6d 73 5b 69 5d |....if (|Teams[i]|
|000032c0| 2e 53 63 6f 72 65 20 3e | 20 30 29 0d 0a 09 09 7b |.Score >| 0)....{|
|000032d0| 0d 0a 09 09 09 69 66 20 | 28 4c 65 76 65 6c 2e 47 |.....if |(Level.G|
|000032e0| 61 6d 65 2e 57 6f 72 6c | 64 4c 6f 67 20 21 3d 20 |ame.Worl|dLog != |
|000032f0| 4e 6f 6e 65 29 0d 0a 09 | 09 09 09 4c 65 76 65 6c |None)...|...Level|
|00003300| 2e 47 61 6d 65 2e 57 6f | 72 6c 64 4c 6f 67 2e 4c |.Game.Wo|rldLog.L|
|00003310| 6f 67 53 70 65 63 69 61 | 6c 45 76 65 6e 74 28 22 |ogSpecia|lEvent("|
|00003320| 64 6f 6d 5f 73 63 6f 72 | 65 5f 75 70 64 61 74 65 |dom_scor|e_update|
|00003330| 22 2c 20 69 2c 20 54 65 | 61 6d 73 5b 69 5d 2e 53 |", i, Te|ams[i].S|
|00003340| 63 6f 72 65 29 3b 0d 0a | 09 09 09 69 66 20 28 4c |core);..|...if (L|
|00003350| 65 76 65 6c 2e 47 61 6d | 65 2e 4c 6f 63 61 6c 4c |evel.Gam|e.LocalL|
|00003360| 6f 67 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 09 |og != No|ne).....|
|00003370| 09 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 4c 6f 63 61 |.Level.G|ame.Loca|
|00003380| 6c 4c 6f 67 2e 4c 6f 67 | 53 70 65 63 69 61 6c 45 |lLog.Log|SpecialE|
|00003390| 76 65 6e 74 28 22 64 6f | 6d 5f 73 63 6f 72 65 5f |vent("do|m_score_|
|000033a0| 75 70 64 61 74 65 22 2c | 20 69 2c 20 54 65 61 6d |update",| i, Team|
|000033b0| 73 5b 69 5d 2e 53 63 6f | 72 65 29 3b 0d 0a 09 09 |s[i].Sco|re);....|
|000033c0| 7d 0d 0a 09 7d 0d 0a 09 | 66 6f 72 20 28 69 3d 30 |}...}...|for (i=0|
|000033d0| 3b 20 69 3c 33 32 3b 20 | 69 2b 2b 29 0d 0a 09 7b |; i<32; |i++)...{|
|000033e0| 0d 0a 09 09 50 52 49 20 | 3d 20 47 61 6d 65 52 65 |....PRI |= GameRe|
|000033f0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 50 52 |plicatio|nInfo.PR|
|00003400| 49 41 72 72 61 79 5b 69 | 5d 3b 0d 0a 09 09 69 66 |IArray[i|];....if|
|00003410| 20 28 50 52 49 20 21 3d | 20 4e 6f 6e 65 29 0d 0a | (PRI !=| None)..|
|00003420| 09 09 7b 0d 0a 09 09 09 | 69 66 20 28 4c 65 76 65 |..{.....|if (Leve|
|00003430| 6c 2e 47 61 6d 65 2e 57 | 6f 72 6c 64 4c 6f 67 20 |l.Game.W|orldLog |
|00003440| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 09 09 09 4c 65 |!= None)|......Le|
|00003450| 76 65 6c 2e 47 61 6d 65 | 2e 57 6f 72 6c 64 4c 6f |vel.Game|.WorldLo|
|00003460| 67 2e 4c 6f 67 53 70 65 | 63 69 61 6c 45 76 65 6e |g.LogSpe|cialEven|
|00003470| 74 28 22 64 6f 6d 5f 70 | 6c 61 79 65 72 73 63 6f |t("dom_p|layersco|
|00003480| 72 65 5f 75 70 64 61 74 | 65 22 2c 20 50 52 49 2e |re_updat|e", PRI.|
|00003490| 50 6c 61 79 65 72 49 44 | 2c 20 69 6e 74 28 50 52 |PlayerID|, int(PR|
|000034a0| 49 2e 53 63 6f 72 65 29 | 29 3b 0d 0a 09 09 09 69 |I.Score)|);.....i|
|000034b0| 66 20 28 4c 65 76 65 6c | 2e 47 61 6d 65 2e 4c 6f |f (Level|.Game.Lo|
|000034c0| 63 61 6c 4c 6f 67 20 21 | 3d 20 4e 6f 6e 65 29 0d |calLog !|= None).|
|000034d0| 0a 09 09 09 09 4c 65 76 | 65 6c 2e 47 61 6d 65 2e |.....Lev|el.Game.|
|000034e0| 4c 6f 63 61 6c 4c 6f 67 | 2e 4c 6f 67 53 70 65 63 |LocalLog|.LogSpec|
|000034f0| 69 61 6c 45 76 65 6e 74 | 28 22 64 6f 6d 5f 70 6c |ialEvent|("dom_pl|
|00003500| 61 79 65 72 73 63 6f 72 | 65 5f 75 70 64 61 74 65 |ayerscor|e_update|
|00003510| 22 2c 20 50 52 49 2e 50 | 6c 61 79 65 72 49 44 2c |", PRI.P|layerID,|
|00003520| 20 69 6e 74 28 50 52 49 | 2e 53 63 6f 72 65 29 29 | int(PRI|.Score))|
|00003530| 3b 09 09 09 09 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |;.......|.}...}..|
|00003540| 0d 0a 09 53 75 70 65 72 | 2e 45 6e 64 47 61 6d 65 |...Super|.EndGame|
|00003550| 28 20 52 65 61 73 6f 6e | 20 29 3b 0d 0a 7d 0d 0a |( Reason| );..}..|
|00003560| 0d 0a 00 | |... | |
+--------+-------------------------+-------------------------+--------+--------+